Ticket #638 (assigned defect)
platform-dependent constraint name hash
|Reported by:||lmartine3@…||Owned by:||andrew|
Constraint names in south appear to use the python built in hash
function which results in either 32 or 64 bit hashed names, depending
on your platform. The django core, however, forces constraint names
into a 32 bit hash irregardless of the platform (see
http://code.djangoproject.com/ticket/9253, although the fix there is
not what is in the latest 1.2 django).
The result is that, on a 64 bit machine, constraint names generated
during a south 'db.create_unique' do not match the output from
As with django core, a fixed 32 bit hash is probably the best solution, although it will cause problems for previously created constraints.