I'm implementing a Sybase SQL Anywhere backend for South to enable the
use of OSQA with SQL Anywhere. I'm able to apply all the migrations
supplied by OSQA, but I'm seeing significant differences in schema
depending on whether or not South was used to create the database. One
class of differences is with unique_together constraints. If I disable
South, and create the database via syncdb, I get unique indexes created
over the columns specified in the model's Meta.unique_together list.
With South enabled, applying the migrations in order results in a
database that does not have this index created.
I have implemented the create_unique() method in the backend but it
doesn't seem to get called for unique_together constraints. I tried
looking though the rest of the code in South but I didn't see anything
obvious that handled unique_together.
How are unique_together constraints implemented within South?
Thanks!
Nathan Auch
Sybase iAnywhere
Some background about SQL Anywhere for the curious:
http://www.sybase.com/products/databasemanagement/sqlanywhere
http://code.google.com/p/sqlany-django/