Migrations broken on existing databases #63

Closed
opened 2026-04-30 11:28:29 +02:00 by magicfelix · 7 comments
magicfelix commented 2026-04-30 11:28:29 +02:00 (Migrated from edugit.org)
2fdd4621dbf3 django.db.utils.InternalError: cannot drop constraint kolego_absence_pkey on table kolego_absence because other objects depend on it
2fdd4621dbf3 DETAIL:  constraint alsijil_participatio_base_absence_id_4d585c82_fk_kolego_ab on table alsijil_participationstatus depends on index kolego_absence_pkey
2fdd4621dbf3 HINT:  Use DROP ... CASCADE to drop the dependent objects too.
``` 2fdd4621dbf3 django.db.utils.InternalError: cannot drop constraint kolego_absence_pkey on table kolego_absence because other objects depend on it 2fdd4621dbf3 DETAIL: constraint alsijil_participatio_base_absence_id_4d585c82_fk_kolego_ab on table alsijil_participationstatus depends on index kolego_absence_pkey 2fdd4621dbf3 HINT: Use DROP ... CASCADE to drop the dependent objects too. ```
magicfelix commented 2026-04-30 11:28:29 +02:00 (Migrated from edugit.org)

assigned to @magicfelix

assigned to @magicfelix
magicfelix commented 2026-04-30 11:29:00 +02:00 (Migrated from edugit.org)

created branch 63-migrations-broken-on-existing-databases to address this issue

created branch [`63-migrations-broken-on-existing-databases`](/AlekSIS/official/AlekSIS-App-Kolego/-/compare/master...63-migrations-broken-on-existing-databases) to address this issue
magicfelix commented 2026-04-30 11:30:16 +02:00 (Migrated from edugit.org)

mentioned in merge request !190

mentioned in merge request !190
hansegucker (Migrated from edugit.org) closed this issue 2026-04-30 21:00:12 +02:00
hansegucker commented 2026-04-30 21:00:50 +02:00 (Migrated from edugit.org)

mentioned in commit 9586ad6ee3

mentioned in commit 9586ad6ee3a470020251390d53c344638b61f518
magicfelix commented 2026-04-30 21:20:36 +02:00 (Migrated from edugit.org)

mentioned in merge request !192

mentioned in merge request !192
hansegucker commented 2026-04-30 22:17:26 +02:00 (Migrated from edugit.org)

mentioned in commit 3085b966d0

mentioned in commit 3085b966d03efd2a9c6804c7626519ab3db54390
magicfelix commented 2026-05-01 11:21:24 +02:00 (Migrated from edugit.org)

mentioned in merge request !193

mentioned in merge request !193
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
aleksis/AlekSIS-App-Kolego#63
No description provided.