Add support for gdpr_removal field on orders and set a timestamp for … (#377)
* 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
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