mirror of https://github.com/sipwise/db-schema.git
Change-Id: Ia27ad2aa240bdacb69b3235e5f2670c951502442changes/43/12443/1
parent
215e8b7c26
commit
99ac96b4ee
@ -0,0 +1,29 @@
|
||||
SET autocommit=0;
|
||||
|
||||
USE accounting;
|
||||
|
||||
DELETE FROM events_tag WHERE type='primary_alias_username_before';
|
||||
DELETE FROM events_tag WHERE type='primary_alias_username_after';
|
||||
DELETE FROM events_tag WHERE type='pilot_primary_alias_username_before';
|
||||
DELETE FROM events_tag WHERE type='pilot_primary_alias_username_after';
|
||||
|
||||
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;
|
||||
|
||||
COMMIT;
|
||||
|
@ -0,0 +1,33 @@
|
||||
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',
|
||||
'primary_alias_username_before',
|
||||
'primary_alias_username_after',
|
||||
'pilot_primary_alias_username_before',
|
||||
'pilot_primary_alias_username_after'
|
||||
) NOT NULL;
|
||||
|
||||
INSERT INTO events_tag SET id=null, type='primary_alias_username_before';
|
||||
INSERT INTO events_tag SET id=null, type='primary_alias_username_after';
|
||||
INSERT INTO events_tag SET id=null, type='pilot_primary_alias_username_before';
|
||||
INSERT INTO events_tag SET id=null, type='pilot_primary_alias_username_after';
|
||||
|
||||
COMMIT;
|
||||
|
Loading…
Reference in new issue