webksde / ddev-vscode-devcontainer-drupal-template

Drupal DDEV based development container with attached Visual Studio Code
22 stars 3 forks source link

Add a command to reset the database to initial state (drowl-reset-db) #153

Closed JPustkuchen closed 6 months ago

JPustkuchen commented 6 months ago

When developing in ddev, it happens quite frequently that you wish to reset the database to initial state. This is already possible using dump-db or export-db if you remember to do this when you set up the project.

Typical cases are for example:

But if you don't, your best chance is to set up a fresh DDEV project, which simply costs too much time. The command should be low-level because in such cases you otherwise run into PHP errors, if Drupal needs to be bootstrapped. For that reason BAM for example can't be accessed typically.

Of course, this requirement is very specific to Drupal development, but that's what the project is for.

JPustkuchen commented 6 months ago

@joshsedl if this is a quick-win I think we should add this soon? :)

joshsedl commented 6 months ago

Definitely! On it now.

joshsedl commented 6 months ago

Fixed!