We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0aed2c5 commit b3de8d0Copy full SHA for b3de8d0
migrations/20181226_productTemplates_subCategory.sql
@@ -9,6 +9,6 @@
9
-- Add new column
10
ALTER TABLE product_templates ADD COLUMN "subCategory" character varying(45);
11
-- Update new column
12
-UPDATE projects SET "subCategory"="category" WHERE "subCategory" is NULL;
+UPDATE product_templates SET "subCategory"="category" WHERE "subCategory" is NULL;
13
-- Set not null
14
-ALTER TABLE projects ALTER COLUMN "subCategory" SET NOT NULL;
+ALTER TABLE product_templates ALTER COLUMN "subCategory" SET NOT NULL;
0 commit comments