WordPress / wordpress-playground

Run WordPress in the browser via WebAssembly PHP
https://w.org/playground/
GNU General Public License v2.0
1.61k stars 242 forks source link

Support .sql files in the importer #1201

Open bgrgicak opened 5 months ago

bgrgicak commented 5 months ago

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 commented 5 months ago

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

flexseth commented 5 months ago

*** unlinked to contributor day

adamziel commented 5 months ago

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