From 18c6c8471e05fda9c0fbe5e2bf86bb5e5a03ed2a Mon Sep 17 00:00:00 2001 From: Martin Carlsson Date: Tue, 2 Feb 2021 18:56:48 +0100 Subject: [PATCH] P5-6659 add unique index to redirects table (#181) --- migrations/000.297.sql | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 migrations/000.297.sql diff --git a/migrations/000.297.sql b/migrations/000.297.sql new file mode 100644 index 0000000..3d5097f --- /dev/null +++ b/migrations/000.297.sql @@ -0,0 +1,5 @@ +--P5-6659: market_locale_id and source_uri should be unique + +drop index if exists market_locale_id_source_uri_idx; + +create unique index on redirects(market_locale_id, source_uri);