diff --git a/db_scripts/diff/15042.down b/db_scripts/diff/15042.down new file mode 100644 index 00000000..e87c1b70 --- /dev/null +++ b/db_scripts/diff/15042.down @@ -0,0 +1,4 @@ +USE billing; + +ALTER TABLE invoice_template MODIFY is_active int(1) unsigned NOT NULL DEFAULT '1'; +ALTER TABLE `invoice_template` DROP INDEX `invoice_template_reseller_active_UNIQUE`; \ No newline at end of file diff --git a/db_scripts/diff/15042.up b/db_scripts/diff/15042.up new file mode 100644 index 00000000..da53e040 --- /dev/null +++ b/db_scripts/diff/15042.up @@ -0,0 +1,6 @@ +USE billing; + +ALTER TABLE invoice_template MODIFY is_active boolean not null default 0; + +ALTER TABLE `invoice_template` + ADD UNIQUE INDEX `invoice_template_reseller_active_UNIQUE` (`reseller_id`,`is_active`); \ No newline at end of file