Prevent Doctrine migration diff from deleting tables -


i'm in process of "doctrinizing" large existing database. process working , we're able substitute old raw query code entities , dql.

we discovered awesome doctrine migrations project seems perfect candidate manage changes our database. we've run bit a snag however.

our database quite large , we're refactoring aspects of our application bit bit. have 40% of database represented entities. problem when run "diff" on partially converted database, diff wants drop whole lot of tables because no entities exist tables. can edit diff manually become quite cumbersome , potentially error prone.

the question is; it possible create diff , tell diff process not drop tables no entities exist?

if working symfony2, can add configuration documented here: http://symfony.com/doc/current/bundles/doctrinemigrationsbundle/index.html#manual-tables

on per-command basis can specify regex tables should accounted diff, like:

app/console doctrine:migrations:diff --filter-expression=/^t_/ 

(will generate diff tables name starts t_ , ignore other).


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -