* Add support for gdpr_removal field on orders and set a timestamp for all orders with a comment containing the abbrevation GDPR * Added gdpr removal field to v_funnel_orders view
6 lines
223 B
SQL
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%'); |