CakeDC/migrations — Issue #38: Regenerating table(s) when accidentally dropped
Author: tomasm-
Created: 2011-11-11 04:25:19+00:00
State: open

If i accidentally drop the tables from a migration plugin (ie 'Ratings' in my example), but the schema_migrations table still has an entry for 'ratings', then when I do 'migration run down -plugin ratings', it complains that the table does not exist. Unfortunately, it aborts at that point and fails to remove the entry from 'schema_migrations', so when I run 'migration run up -plugin ratings', it does absolutely nothing (not creating the desired table) because it things it's already created. 'migration run down' should remove the entry from 'schema_migrations' regardless of whether the table exists or not, in these accidental cases.