From c9473c3063c0e25f9072d1d6de7cc7bf3bdb0983 Mon Sep 17 00:00:00 2001 From: Felix Beuke Date: Tue, 5 Jul 2022 18:41:58 +0200 Subject: [PATCH] fix(identity): migrate identity_addresses to lower case (#2517) Closes #2426 --- ...20610155809000000_identity_address_casing.cockroach.down.sql | 0 ...0220610155809000000_identity_address_casing.cockroach.up.sql | 2 ++ .../20220610155809000000_identity_address_casing.mysql.down.sql | 0 .../20220610155809000000_identity_address_casing.mysql.up.sql | 2 ++ ...220610155809000000_identity_address_casing.postgres.down.sql | 0 ...20220610155809000000_identity_address_casing.postgres.up.sql | 2 ++ ...0220610155809000000_identity_address_casing.sqlite3.down.sql | 0 .../20220610155809000000_identity_address_casing.sqlite3.up.sql | 2 ++ .../20220301102702_identity_address_performance.up.sql | 2 +- 9 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 persistence/sql/migrations/sql/20220610155809000000_identity_address_casing.cockroach.down.sql create mode 100644 persistence/sql/migrations/sql/20220610155809000000_identity_address_casing.cockroach.up.sql create mode 100644 persistence/sql/migrations/sql/20220610155809000000_identity_address_casing.mysql.down.sql create mode 100644 persistence/sql/migrations/sql/20220610155809000000_identity_address_casing.mysql.up.sql create mode 100644 persistence/sql/migrations/sql/20220610155809000000_identity_address_casing.postgres.down.sql create mode 100644 persistence/sql/migrations/sql/20220610155809000000_identity_address_casing.postgres.up.sql create mode 100644 persistence/sql/migrations/sql/20220610155809000000_identity_address_casing.sqlite3.down.sql create mode 100644 persistence/sql/migrations/sql/20220610155809000000_identity_address_casing.sqlite3.up.sql diff --git a/persistence/sql/migrations/sql/20220610155809000000_identity_address_casing.cockroach.down.sql b/persistence/sql/migrations/sql/20220610155809000000_identity_address_casing.cockroach.down.sql new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/persistence/sql/migrations/sql/20220610155809000000_identity_address_casing.cockroach.up.sql b/persistence/sql/migrations/sql/20220610155809000000_identity_address_casing.cockroach.up.sql new file mode 100644 index 000000000000..8fc16ef42053 --- /dev/null +++ b/persistence/sql/migrations/sql/20220610155809000000_identity_address_casing.cockroach.up.sql @@ -0,0 +1,2 @@ +UPDATE identity_recovery_addresses SET value = LOWER(value) WHERE TRUE; +UPDATE identity_verifiable_addresses SET value = LOWER(value) WHERE TRUE; diff --git a/persistence/sql/migrations/sql/20220610155809000000_identity_address_casing.mysql.down.sql b/persistence/sql/migrations/sql/20220610155809000000_identity_address_casing.mysql.down.sql new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/persistence/sql/migrations/sql/20220610155809000000_identity_address_casing.mysql.up.sql b/persistence/sql/migrations/sql/20220610155809000000_identity_address_casing.mysql.up.sql new file mode 100644 index 000000000000..8fc16ef42053 --- /dev/null +++ b/persistence/sql/migrations/sql/20220610155809000000_identity_address_casing.mysql.up.sql @@ -0,0 +1,2 @@ +UPDATE identity_recovery_addresses SET value = LOWER(value) WHERE TRUE; +UPDATE identity_verifiable_addresses SET value = LOWER(value) WHERE TRUE; diff --git a/persistence/sql/migrations/sql/20220610155809000000_identity_address_casing.postgres.down.sql b/persistence/sql/migrations/sql/20220610155809000000_identity_address_casing.postgres.down.sql new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/persistence/sql/migrations/sql/20220610155809000000_identity_address_casing.postgres.up.sql b/persistence/sql/migrations/sql/20220610155809000000_identity_address_casing.postgres.up.sql new file mode 100644 index 000000000000..8fc16ef42053 --- /dev/null +++ b/persistence/sql/migrations/sql/20220610155809000000_identity_address_casing.postgres.up.sql @@ -0,0 +1,2 @@ +UPDATE identity_recovery_addresses SET value = LOWER(value) WHERE TRUE; +UPDATE identity_verifiable_addresses SET value = LOWER(value) WHERE TRUE; diff --git a/persistence/sql/migrations/sql/20220610155809000000_identity_address_casing.sqlite3.down.sql b/persistence/sql/migrations/sql/20220610155809000000_identity_address_casing.sqlite3.down.sql new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/persistence/sql/migrations/sql/20220610155809000000_identity_address_casing.sqlite3.up.sql b/persistence/sql/migrations/sql/20220610155809000000_identity_address_casing.sqlite3.up.sql new file mode 100644 index 000000000000..8fc16ef42053 --- /dev/null +++ b/persistence/sql/migrations/sql/20220610155809000000_identity_address_casing.sqlite3.up.sql @@ -0,0 +1,2 @@ +UPDATE identity_recovery_addresses SET value = LOWER(value) WHERE TRUE; +UPDATE identity_verifiable_addresses SET value = LOWER(value) WHERE TRUE; diff --git a/persistence/sql/migrations/templates/20220301102702_identity_address_performance.up.sql b/persistence/sql/migrations/templates/20220301102702_identity_address_performance.up.sql index 640c32d6224a..8fc16ef42053 100644 --- a/persistence/sql/migrations/templates/20220301102702_identity_address_performance.up.sql +++ b/persistence/sql/migrations/templates/20220301102702_identity_address_performance.up.sql @@ -1,2 +1,2 @@ UPDATE identity_recovery_addresses SET value = LOWER(value) WHERE TRUE; -UPDATE identity_verification_addresses SET value = LOWER(value) WHERE TRUE; +UPDATE identity_verifiable_addresses SET value = LOWER(value) WHERE TRUE;