mirror of https://github.com/sipwise/db-schema.git
Change-Id: Ia6a4cccc88e36775a6931d7da73a52639c1fbc39
(cherry picked from commit d87cb7c25a
)
changes/35/30335/1
parent
7e41f4b4de
commit
735bada4e0
@ -0,0 +1,11 @@
|
||||
SET autocommit=0;
|
||||
|
||||
USE provisioning
|
||||
|
||||
DROP INDEX IF EXISTS resnam_idx ON `billing`.`billing_profiles`;
|
||||
CREATE UNIQUE INDEX IF NOT EXISTS resnam_idx ON `billing`.`billing_profiles`(`reseller_id`,`name`);
|
||||
|
||||
DROP INDEX IF EXISTS reshand_idx ON `billing`.`billing_profiles`;
|
||||
CREATE UNIQUE INDEX IF NOT EXISTS reshand_idx ON `billing`.`billing_profiles`(`reseller_id`, `handle`);
|
||||
|
||||
commit;
|
@ -0,0 +1,10 @@
|
||||
use provisioning;
|
||||
set autocommit=0;
|
||||
|
||||
DROP INDEX IF EXISTS resnam_idx ON `billing`.`billing_profiles`;
|
||||
CREATE UNIQUE INDEX IF NOT EXISTS resnam_idx ON `billing`.`billing_profiles`(`reseller_id`,`name`,`terminate_timestamp`);
|
||||
|
||||
DROP INDEX IF EXISTS reshand_idx ON `billing`.`billing_profiles`;
|
||||
CREATE UNIQUE INDEX IF NOT EXISTS reshand_idx ON `billing`.`billing_profiles`(`reseller_id`, `handle`,`terminate_timestamp`);
|
||||
|
||||
commit;
|
Loading…
Reference in new issue