Archive old migrations (#426)
* Archive old migrations * Fix invalid placement of migrations
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
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%');
|
||||
Reference in New Issue
Block a user