Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
dezren39 committed Dec 18, 2023
1 parent 4c4949d commit 30e855c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
ALTER TABLE nodes
DROP CONSTRAINT IF EXISTS nodes_team_id_fkey, -- Drop existing foreign key constraint
ADD COLUMN IF NOT EXISTS team_id UUID, -- Add the column if it doesn't exist
ADD CONSTRAINT nodes_team_id_fkey FOREIGN KEY (team_id) REFERENCES teams(id); -- Add foreign key constraint
ADD CONSTRAINT nodes_team_id_fkey FOREIGN KEY (team_id) REFERENCES nodes(id); -- Add foreign key constraint

-- +goose Down
ALTER TABLE nodes
Expand Down

0 comments on commit 30e855c

Please sign in to comment.