Add publishing date (#255)

This commit is contained in:
Niklas Fondberg
2022-03-10 16:22:25 +01:00
committed by GitHub
parent 44f71cb018
commit de0372d79c
+5
View File
@@ -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;