diff options
Diffstat (limited to 'db/migrations/0207_many_firestar.sql')
| -rw-r--r-- | db/migrations/0207_many_firestar.sql | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/db/migrations/0207_many_firestar.sql b/db/migrations/0207_many_firestar.sql new file mode 100644 index 00000000..46691ab1 --- /dev/null +++ b/db/migrations/0207_many_firestar.sql @@ -0,0 +1,3 @@ +ALTER TABLE "items" DROP CONSTRAINT "items_item_code_unique";--> statement-breakpoint +ALTER TABLE "items" ALTER COLUMN "item_code" SET NOT NULL;--> statement-breakpoint +ALTER TABLE "items" ADD CONSTRAINT "project_item_unique" UNIQUE("project_no","item_code");
\ No newline at end of file |
