diff --git a/migrations/000.359.sql b/migrations/000.359.sql new file mode 100644 index 0000000..701b84f --- /dev/null +++ b/migrations/000.359.sql @@ -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;