From 57b3ca66eb4247a7ba937e078ad7d1dbc6cf856c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Ant=C3=B3nio?= Date: Thu, 26 Dec 2024 22:30:52 +0000 Subject: [PATCH] feat: remove foreign keys (#308) * first commit * fix syntax error * add proper migrations updates --- .../migrations/20241226222104_remove_foreign_keys.sql | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 atoma-state/src/migrations/20241226222104_remove_foreign_keys.sql diff --git a/atoma-state/src/migrations/20241226222104_remove_foreign_keys.sql b/atoma-state/src/migrations/20241226222104_remove_foreign_keys.sql new file mode 100644 index 00000000..0dda86dc --- /dev/null +++ b/atoma-state/src/migrations/20241226222104_remove_foreign_keys.sql @@ -0,0 +1,11 @@ +-- Remove foreign key from node_subscriptions +ALTER TABLE node_subscriptions +DROP CONSTRAINT node_subscriptions_task_small_id_fkey; + +-- Remove foreign key from stacks +ALTER TABLE stacks +DROP CONSTRAINT stacks_selected_node_id_task_small_id_fkey; + +-- Remove foreign key from stack_attestation_disputes +ALTER TABLE stack_attestation_disputes +DROP CONSTRAINT stack_attestation_disputes_stack_small_id_fkey; \ No newline at end of file