Skip to content

Commit

Permalink
fix the migration script
Browse files Browse the repository at this point in the history
  • Loading branch information
motatoes committed Jul 24, 2024
1 parent afffb3f commit afcc27c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ALTER TABLE digger_job_tokens
DROP COLUMN organisation_id;

ALTER TABLE digger_job_tokens
ADD COLUMN organisation_id UUID;

3 changes: 3 additions & 0 deletions supabase/migrations/20240724205344_digger_job_tokens_fk.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ALTER TABLE digger_job_tokens
ADD CONSTRAINT fk_jt_organisation_id
FOREIGN KEY (organisation_id) REFERENCES organizations(id);

0 comments on commit afcc27c

Please sign in to comment.