mirror of https://github.com/sipwise/db-schema.git
Change-Id: Id7fd187376a4dfdff21445be98a37a03ed5fc072changes/96/10996/3
parent
ea98d300c9
commit
2c74798703
@ -0,0 +1,24 @@
|
||||
SET autocommit=0;
|
||||
|
||||
USE accounting;
|
||||
|
||||
DELETE FROM events_tag WHERE type='non_primary_alias_username';
|
||||
|
||||
ALTER TABLE events_tag MODIFY COLUMN type ENUM(
|
||||
'primary_number_cc',
|
||||
'primary_number_ac',
|
||||
'primary_number_sn',
|
||||
'pilot_primary_number_cc',
|
||||
'pilot_primary_number_ac',
|
||||
'pilot_primary_number_sn',
|
||||
'subscriber_profile_name',
|
||||
'subscriber_profile_set_name',
|
||||
'pilot_subscriber_profile_name',
|
||||
'pilot_subscriber_profile_set_name',
|
||||
'first_non_primary_alias_username_before',
|
||||
'first_non_primary_alias_username_after',
|
||||
'pilot_first_non_primary_alias_username_before',
|
||||
'pilot_first_non_primary_alias_username_after'
|
||||
) NOT NULL;
|
||||
|
||||
COMMIT;
|
||||
@ -0,0 +1,25 @@
|
||||
SET autocommit=0;
|
||||
|
||||
USE accounting;
|
||||
|
||||
ALTER TABLE events_tag MODIFY COLUMN type ENUM(
|
||||
'primary_number_cc',
|
||||
'primary_number_ac',
|
||||
'primary_number_sn',
|
||||
'pilot_primary_number_cc',
|
||||
'pilot_primary_number_ac',
|
||||
'pilot_primary_number_sn',
|
||||
'subscriber_profile_name',
|
||||
'subscriber_profile_set_name',
|
||||
'pilot_subscriber_profile_name',
|
||||
'pilot_subscriber_profile_set_name',
|
||||
'first_non_primary_alias_username_before',
|
||||
'first_non_primary_alias_username_after',
|
||||
'pilot_first_non_primary_alias_username_before',
|
||||
'pilot_first_non_primary_alias_username_after',
|
||||
'non_primary_alias_username'
|
||||
) NOT NULL;
|
||||
|
||||
INSERT INTO events_tag SET id=null, type='non_primary_alias_username';
|
||||
|
||||
COMMIT;
|
||||
Loading…
Reference in new issue