Skip to content

Commit

Permalink
feat: remove foreign keys (#308)
Browse files Browse the repository at this point in the history
* first commit

* fix syntax error

* add proper migrations updates
  • Loading branch information
jorgeantonio21 authored Dec 26, 2024
1 parent 3d683a9 commit 57b3ca6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions atoma-state/src/migrations/20241226222104_remove_foreign_keys.sql
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 57b3ca6

Please sign in to comment.