Skip to content

Commit b3de8d0

Browse files
committed
Corrected table name in migration script.
1 parent 0aed2c5 commit b3de8d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

migrations/20181226_productTemplates_subCategory.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
-- Add new column
1010
ALTER TABLE product_templates ADD COLUMN "subCategory" character varying(45);
1111
-- Update new column
12-
UPDATE projects SET "subCategory"="category" WHERE "subCategory" is NULL;
12+
UPDATE product_templates SET "subCategory"="category" WHERE "subCategory" is NULL;
1313
-- Set not null
14-
ALTER TABLE projects ALTER COLUMN "subCategory" SET NOT NULL;
14+
ALTER TABLE product_templates ALTER COLUMN "subCategory" SET NOT NULL;

0 commit comments

Comments
 (0)