Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database can not be cleaned when model is changed #15

Open
GoogleCodeExporter opened this issue Mar 15, 2015 · 0 comments
Open

Database can not be cleaned when model is changed #15

GoogleCodeExporter opened this issue Mar 15, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

forceMakeAll sometimes has problems cleaning/recreating the database 
corresponding to the data model if the data model has changed a lot. for 
example if a class has been renamed the old table is not dropped in the 
newly generated drop_table scripts. 
\because of this sometimes other tables can not be dropped because a 
foreign key exists betwene the old tables, because of this the 
corresponding table can not be recreated and the script fails with a hard 
error.

Only fix right now is to go into the databas and clean it by hand.

We may want a different manner to clean the old database than dropping all 
views and tables using the generated script.
Maybe we can clean it by querying the metadata? Or using the last script 
that was actually run against the database forceMakeAll would have to 
store this).

Original issue reported on code.google.com by [email protected] on 18 Nov 2009 at 11:33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant