Add publishing date (#255)
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
-- Add publishing_date to products
|
||||||
|
ALTER TABLE "product-products" DROP COLUMN IF EXISTS publishing_date;
|
||||||
|
ALTER TABLE "product-products" ADD COLUMN IF NOT EXISTS publishing_date timestamp with time zone DEFAULT now();
|
||||||
|
|
||||||
|
UPDATE "product-products" SET publishing_date = inserted;
|
||||||
Reference in New Issue
Block a user