• 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
..
0001_initial.py Loading commit data...
0002_auto__del_field_contact_name__add_field_contact_lastname__add_field_co.py Loading commit data...
0003_auto__add_institutiondetails__del_field_institution_address_city__del_.py Loading commit data...
0004_auto__add_field_name_i18n_object_id__add_field_name_i18n_content_type.py Loading commit data...
0005_auto.py Loading commit data...
0006_auto.py Loading commit data...
0007_auto.py Loading commit data...
0008_auto__chg_field_serviceloc_address_city__chg_field_serviceloc_address_.py Loading commit data...
0009_auto__chg_field_institutiondetails_address_city__chg_field_institution.py Loading commit data...
0010_auto__add_field_url_i18n_object_id__add_field_url_i18n_content_type.py Loading commit data...
0011_auto__add_institutioncontactpool.py Loading commit data...
0012_auto__del_field_instrealm_priority__del_field_instrealm_realmexpr__add.py Loading commit data...
0013_auto__chg_field_instserver_retry__chg_field_instserver_timeout__chg_fi.py Loading commit data...
0014_auto__chg_field_institutiondetails_oper_name.py Loading commit data...
0015_auto__chg_field_institutiondetails_number_user.py Loading commit data...
0016_auto__add_field_institution_ertype__del_field_institutiondetails_ertyp.py Loading commit data...
0017_auto__chg_field_instserver_name.py Loading commit data...
0018_auto__chg_field_serviceloc_enc_level.py Loading commit data...
0019_auto__del_field_contact_lastname.py Loading commit data...
0020_auto__del_field_contact_firstname__add_field_contact_name.py Loading commit data...
0021_auto__chg_field_contact_name.py Loading commit data...
0022_auto__chg_field_institutiondetails_number_id__del_field_instrealmmon_i.py Loading commit data...
0023_auto__add_unique_instrealmmon_realm_mon_type.py Loading commit data...
0024_auto__chg_field_monproxybackclient_name.py Loading commit data...
0025_auto__del_field_monlocaleapoldata_cert.py Loading commit data...
0026_auto__del_field_monlocaleapoldata_exp_response.py Loading commit data...
0027_auto__del_monlocaleapoldata__add_monlocalauthnparam.py Loading commit data...
0028_auto__chg_field_monlocalauthnparam_instrealmmonid__add_unique_monlocal.py Loading commit data...
0029_auto__chg_field_monproxybackclient_secret__chg_field_instserver_secret.py Loading commit data...
0030_auto__del_field_instserver_port__del_field_instserver_retry__del_field.py Loading commit data...
0031_auto__add_field_instserver_addr_type.py Loading commit data...
0032_auto__chg_field_instserver_addr_type.py Loading commit data...
0033_auto__add_field_instserver_rad_pkt_type.py Loading commit data...
0034_auto__chg_field_monlocalauthnparam_passwp.py Loading commit data...
0035_auto__chg_field_monlocalauthnparam_username.py Loading commit data...
0036_auto__chg_field_serviceloc_enc_level.py Loading commit data...
0037_auto__chg_field_realm_country.py Loading commit data...
0038_auto__chg_field_serviceloc_longitude__chg_field_serviceloc_latitude.py Loading commit data...
0039_auto__chg_field_serviceloc_longitude__chg_field_serviceloc_latitude.py Loading commit data...
0040_auto__add_catenrollment__add_unique_catenrollment_inst_cat_instance.py Loading commit data...
0041_auto__add_field_catenrollment_applier.py Loading commit data...
__init__.py Loading commit data...