wordpress-playground icon indicating copy to clipboard operation
wordpress-playground copied to clipboard

Support .sql files in the importer

Open bgrgicak opened this issue 10 months ago • 3 comments

The Playground plugin supports snapshot exports.

We need to ensure these snapshots work in Playground.

The main difference is that Playground uses wp-content/database/.ht.sqlite and that plugin uses wp-content/database/database.sql. These two exports are in different formats. Playground should detect if there is a SQL file and run it during import.

if both files are present, it should just load .ht.sqlite to prevent data overrides, or fail.

bgrgicak avatar Apr 05 '24 08:04 bgrgicak

We will need to implement passwordless login for this to work https://github.com/WordPress/playground-tools/pull/219#pullrequestreview-1982379510 After this is done the Playground plugin should be updated to use the import step https://github.com/WordPress/playground-tools/pull/219#pullrequestreview-1982381387

bgrgicak avatar Apr 05 '24 09:04 bgrgicak

*** unlinked to contributor day

flexseth avatar Apr 11 '24 22:04 flexseth

@flexseth this is a feature development problem, not a documentation problem.

adamziel avatar Apr 12 '24 11:04 adamziel