On 17/11/2015 11:14 AM, marcin....@gmail.com wrote:
> Hi!
>
> After upgrade from 1.5 to 1.8.6 I'm trying to dump sql from models.
> I'm not using django migrations, and my db_router does not allow for
> migrations.
>
Try this ...
1. Rename all the migrations directories if they exist
2. $~python manage.py sql [appname1] [appname2] > project_[date].sql
3. Restore the directory names so they don't get recreated
Good luck
> Every "sql*" management command gives me nothing (empty output), where
> I'm expecting generated SQL.
>
> 1. How can I dump tables and indices creation sql from my models with
> new Django?
> 2. What was wrong with old-style method?
>
>
> Kind Regards,
> Marcin
>
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to django-users...@googlegroups.com
> <mailto:django-users+unsub...@googlegroups.com>.