From 593783866a8f6e41476178b4b50a4e2ee7dac9ef Mon Sep 17 00:00:00 2001 From: Raymond <101374892+raymonable@users.noreply.github.com> Date: Sat, 6 Jun 2026 23:40:39 -0400 Subject: [PATCH] fix: [ongeki] update constraints to cascade --- src/main/resources/db/80/V1000_77__ongeki_fk.sql | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/main/resources/db/80/V1000_77__ongeki_fk.sql diff --git a/src/main/resources/db/80/V1000_77__ongeki_fk.sql b/src/main/resources/db/80/V1000_77__ongeki_fk.sql new file mode 100644 index 00000000..394a1cf5 --- /dev/null +++ b/src/main/resources/db/80/V1000_77__ongeki_fk.sql @@ -0,0 +1,10 @@ +alter table ongeki_user_event_map drop foreign key FKU_ONGEKI_USER_EVENT_MAP; +alter table ongeki_user_skin drop foreign key FKU_ONGEKI_USER_SKIN; + +alter table ongeki_user_event_map add constraint FKU_ONGEKI_USER_EVENT_MAP + foreign key (user_id) references ongeki_user_data (id) + on delete cascade on update cascade; + +alter table ongeki_user_skin add constraint FKU_ONGEKI_USER_SKIN + foreign key (user_id) references ongeki_user_data (id) + on delete cascade on update cascade; \ No newline at end of file