From 8ff016c90faf871e4d4380e9b9ff302f843ab315 Mon Sep 17 00:00:00 2001 From: Andrew Richardson Date: Wed, 8 Dec 2021 17:09:38 -0500 Subject: [PATCH] Remove unique index on token URIs Signed-off-by: Andrew Richardson --- db/migrations/postgres/000048_remove_token_uri_index.down.sql | 3 +++ db/migrations/postgres/000048_remove_token_uri_index.up.sql | 3 +++ db/migrations/sqlite/000048_remove_token_uri_index.down.sql | 1 + db/migrations/sqlite/000048_remove_token_uri_index.up.sql | 1 + 4 files changed, 8 insertions(+) create mode 100644 db/migrations/postgres/000048_remove_token_uri_index.down.sql create mode 100644 db/migrations/postgres/000048_remove_token_uri_index.up.sql create mode 100644 db/migrations/sqlite/000048_remove_token_uri_index.down.sql create mode 100644 db/migrations/sqlite/000048_remove_token_uri_index.up.sql diff --git a/db/migrations/postgres/000048_remove_token_uri_index.down.sql b/db/migrations/postgres/000048_remove_token_uri_index.down.sql new file mode 100644 index 0000000000..189618dc19 --- /dev/null +++ b/db/migrations/postgres/000048_remove_token_uri_index.down.sql @@ -0,0 +1,3 @@ +BEGIN; +CREATE UNIQUE INDEX tokenbalance_uri ON tokenbalance(namespace,key,pool_id,uri); +COMMIT; diff --git a/db/migrations/postgres/000048_remove_token_uri_index.up.sql b/db/migrations/postgres/000048_remove_token_uri_index.up.sql new file mode 100644 index 0000000000..05228f7a43 --- /dev/null +++ b/db/migrations/postgres/000048_remove_token_uri_index.up.sql @@ -0,0 +1,3 @@ +BEGIN; +DROP INDEX tokenbalance_uri; +COMMIT; diff --git a/db/migrations/sqlite/000048_remove_token_uri_index.down.sql b/db/migrations/sqlite/000048_remove_token_uri_index.down.sql new file mode 100644 index 0000000000..a678a7a1c5 --- /dev/null +++ b/db/migrations/sqlite/000048_remove_token_uri_index.down.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX tokenbalance_uri ON tokenbalance(namespace,key,pool_id,uri); diff --git a/db/migrations/sqlite/000048_remove_token_uri_index.up.sql b/db/migrations/sqlite/000048_remove_token_uri_index.up.sql new file mode 100644 index 0000000000..793091e6fb --- /dev/null +++ b/db/migrations/sqlite/000048_remove_token_uri_index.up.sql @@ -0,0 +1 @@ +DROP INDEX tokenbalance_uri;