Skip to content

Commit

Permalink
Merge pull request #6078 from espoon-voltti/cascade-citizen-user-delete
Browse files Browse the repository at this point in the history
Poistetaan citizen_user-taulun rivi jos person-taulun rivi poistuu
  • Loading branch information
Gekkio authored Dec 4, 2024
2 parents b63480f + 20e7887 commit 35bbdfe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ALTER TABLE citizen_user
DROP CONSTRAINT fk$person,
ADD CONSTRAINT fk$person FOREIGN KEY (id) REFERENCES person (id) ON DELETE CASCADE;
1 change: 1 addition & 0 deletions service/src/main/resources/migrations.txt
Original file line number Diff line number Diff line change
Expand Up @@ -465,3 +465,4 @@ V466__push_notification_calendar_event_reservation.sql
V467__push_notification_calendar_event_reservation_defaults.sql
V468__citizen_user.sql
V469__income_statement_status.sql
V470__cascade_citizen_user_delete.sql

0 comments on commit 35bbdfe

Please sign in to comment.