Django migrations: how to generate database from current state of the models (good old syncdb --all) -
usually when started working on django+south project had been in development time didn't bother applying hundreds of migrations current state of database. went straight syncdb --all create database current model state run migrate --fake mark migrations passed.
in matter of few seconds had database in sync migrations. syncdb loaded initial fixtures. 99% cases needed. happy.
how can now? syncdb deprecated , migrate command doesn't have option ignore migrations , create database current state of model classes.
migrate command makes me go through tons of migrations many months of project development. these migrations have weird errors don't care about. extremely slow if messed in implementation of migration engine.
i want able say: "hey, django, model, create me database model, fake migrations , let's work there".
i know can delete migrations locally, create initials apps , apply them seems weird workaround equivalent of syncdb --all.
am missing something?
Comments
Post a Comment