-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update tasks owners, needs updated entx + gqlgen-plugins before passing
Signed-off-by: Sarah Funkhouser <[email protected]>
- Loading branch information
1 parent
e820595
commit 6249acd
Showing
41 changed files
with
1,616 additions
and
1,705 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
db/migrations-goose-postgres/20250119225110_task_owner.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
-- +goose Up | ||
-- modify "task_history" table | ||
ALTER TABLE "task_history" ALTER COLUMN "owner_id" SET NOT NULL; | ||
-- modify "tasks" table | ||
ALTER TABLE "tasks" DROP CONSTRAINT "tasks_organizations_tasks", ALTER COLUMN "owner_id" SET NOT NULL, ADD CONSTRAINT "tasks_organizations_tasks" FOREIGN KEY ("owner_id") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE NO ACTION; | ||
|
||
-- +goose Down | ||
-- reverse: modify "tasks" table | ||
ALTER TABLE "tasks" DROP CONSTRAINT "tasks_organizations_tasks", ALTER COLUMN "owner_id" DROP NOT NULL, ADD CONSTRAINT "tasks_organizations_tasks" FOREIGN KEY ("owner_id") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL; | ||
-- reverse: modify "task_history" table | ||
ALTER TABLE "task_history" ALTER COLUMN "owner_id" DROP NOT NULL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
-- Modify "task_history" table | ||
ALTER TABLE "task_history" ALTER COLUMN "owner_id" SET NOT NULL; | ||
-- Modify "tasks" table | ||
ALTER TABLE "tasks" DROP CONSTRAINT "tasks_organizations_tasks", ALTER COLUMN "owner_id" SET NOT NULL, ADD CONSTRAINT "tasks_organizations_tasks" FOREIGN KEY ("owner_id") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE NO ACTION; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.