diff --git a/db_scripts/diff/15330.down b/db_scripts/diff/15330.down new file mode 100644 index 00000000..bb75c82c --- /dev/null +++ b/db_scripts/diff/15330.down @@ -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; + diff --git a/db_scripts/diff/15330.up b/db_scripts/diff/15330.up new file mode 100644 index 00000000..e0ef3881 --- /dev/null +++ b/db_scripts/diff/15330.up @@ -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; +