liuyang1520 / django-command-extensions

Automatically exported from code.google.com/p/django-command-extensions
MIT License
0 stars 0 forks source link

sqldiff does not take in account "order_with_respect_to" #89

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. have a model with "order_with_respect_to" in its Meta
2. run syncdb
3. run sqldiff: tells to remove "_order" column. You can also compare table
creation SQL from "sql" command

I have attached a patch to fix this. Basically it instantiate an integer
field name "_order". If meta has "order_with_respect_to" we had this to the
list of fields to compare against the db.

Original issue reported on code.google.com by bert.mat...@gmail.com on 27 Mar 2009 at 3:21

Attachments:

GoogleCodeExporter commented 8 years ago
thanks for the patch!
committed it to svn and github

Original comment by v.oostv...@gmail.com on 30 Mar 2009 at 10:05