From 433f24d4ad3fc28c348b56c166a992f2cdbe7465 Mon Sep 17 00:00:00 2001 From: Irina Peshinskaya Date: Thu, 6 Mar 2014 13:58:06 +0100 Subject: [PATCH] MT#5879 It was rather stupid to make unique index on is_active field: there could be a lot of inactive templates. --- db_scripts/diff/15043.down | 4 ++++ db_scripts/diff/15043.up | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 db_scripts/diff/15043.down create mode 100644 db_scripts/diff/15043.up diff --git a/db_scripts/diff/15043.down b/db_scripts/diff/15043.down new file mode 100644 index 00000000..573439ae --- /dev/null +++ b/db_scripts/diff/15043.down @@ -0,0 +1,4 @@ +USE billing; + +ALTER TABLE `invoice_template` + ADD UNIQUE INDEX `invoice_template_reseller_active_UNIQUE` (`reseller_id`,`is_active`); \ No newline at end of file diff --git a/db_scripts/diff/15043.up b/db_scripts/diff/15043.up new file mode 100644 index 00000000..3b2aa3d3 --- /dev/null +++ b/db_scripts/diff/15043.up @@ -0,0 +1,4 @@ +USE billing; + + +ALTER TABLE `invoice_template` DROP INDEX `invoice_template_reseller_active_UNIQUE`;