6 lines
276 B
SQL
6 lines
276 B
SQL
-- 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;
|