• Vladimir Mencl's avatar
    South migrations: improve #4 PostgreSQL workaround · 28f60f62
    Vladimir Mencl authored
    The original fix to the PostgreSQL issue with south migration 0022 did correctly change the field type, but did not add the Foreign Key constraint.
    
    Improve the workaround 9a2924d5 by also adding the foreign key constraint.
    
    For databases created with the original workaround, the foreign key constraint can be added manually with:
    
        ALTER TABLE edumanage_instrealmmon ADD CONSTRAINT "edumanage_i_realm_id_24cc89d4be4145e5_fk_edumanage_instrealm_id" FOREIGN KEY (realm_id) REFERENCES edumanage_instrealm(id) DEFERRABLE INITIALLY DEFERRED;
    
    Note that not having the constraint in does not directly break anything, but
    could lead to corrupt databases and the database structure is reported
    differently with:
    
        ./manage.py inspectdb
    28f60f62
Name
Last commit
Last update
accounts Loading commit data...
djangobackends Loading commit data...
djnro Loading commit data...
docs Loading commit data...
edumanage Loading commit data...
extras Loading commit data...
front Loading commit data...
initial_data Loading commit data...
locale Loading commit data...
static Loading commit data...
utils Loading commit data...
.gitignore Loading commit data...
COPYING Loading commit data...
Changelog Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
__init__.py Loading commit data...
_version.py Loading commit data...
manage.py Loading commit data...
mkdocs.yml Loading commit data...
requirements.txt Loading commit data...
upgrade-from-0.8-notes.txt Loading commit data...