From 444169583a8344f66f01f1b167eaaa61d7aaef34 Mon Sep 17 00:00:00 2001 From: Fredrik Ringqvist Date: Wed, 24 Apr 2019 13:18:31 +0200 Subject: [PATCH] P5-3705 Remove states from non-US contract customers --- migrations/000.103.sql | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 migrations/000.103.sql diff --git a/migrations/000.103.sql b/migrations/000.103.sql new file mode 100644 index 0000000..ba06e81 --- /dev/null +++ b/migrations/000.103.sql @@ -0,0 +1,6 @@ +-- P5-3705 Remove states from non-US contract customers + +UPDATE contract_customers SET state = null WHERE state is not null and country != 'US'; + +UPDATE contract_customers SET "delivery-state" = null WHERE "delivery-state" is not null and "delivery-country" != 'US'; +