Files
database/migrations/archive/000.359.sql
T
Rikard BartholfandGitHub ddcbd0afb0 Archive old migrations (#426)
* Archive old migrations

* Fix invalid placement of migrations
2024-10-17 11:19:12 +02:00

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;