Closed (fixed)
Project:
Drush
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
13 Jan 2010 at 05:55 UTC
Updated:
27 Jan 2010 at 22:40 UTC
The core-upgrade command needs to drop the target database (if it exists), and recreate it from scratch. Or it needs to drop all tables right at the start. I forgot to to put this feature in so far. If we don't do this, we leave behind tables which the upgrade path tries to recreate and errors ensue.
I'm thinking this DROP DATABASE should happen whenever a create-db has been specified. This way, we don't add new options.
If we don't want this feature in sql sync, I can do it in upgrade command.
I'll write the code - just looking for some input from greg and others.
Comments
Comment #1
greg.1.anderson commentedI think this is a very good idea. If the database does not exist, you'll just get a warning that can be ignored. I have similar bash scripts that work the same way.
Comment #2
moshe weitzman commentedCommitted.