Files
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
223 B
SQL

ALTER TABLE orders
ADD COLUMN IF NOT EXISTS gdpr_removal TIMESTAMP WITH TIME ZONE;
UPDATE orders
SET gdpr_removal = NOW()::timestamp
WHERE id IN (SELECT id FROM orders WHERE LOWER(comment::TEXT) LIKE '%gdpr%');