From c069ddab93f64baf6d6b16b62edf4d3a78aae66e Mon Sep 17 00:00:00 2001 From: Andreas Granig Date: Wed, 20 Mar 2013 14:54:21 +0000 Subject: [PATCH] Add language strings for fee direction and fix key. --- db_scripts/diff/13127.down | 2 +- db_scripts/diff/13127.up | 2 +- db_scripts/diff/13216.down | 3 +++ db_scripts/diff/13216.up | 8 ++++++++ 4 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 db_scripts/diff/13216.down create mode 100644 db_scripts/diff/13216.up diff --git a/db_scripts/diff/13127.down b/db_scripts/diff/13127.down index 38b526b1..59d77069 100644 --- a/db_scripts/diff/13127.down +++ b/db_scripts/diff/13127.down @@ -2,5 +2,5 @@ USE billing; ALTER TABLE billing_fees DROP KEY profdesdirtype_idx; ALTER TABLE billing_fees DROP COLUMN direction; -ALTER TABLE billing_fees ADD KEY profdestype_idx +ALTER TABLE billing_fees ADD UNIQUE KEY profdestype_idx (billing_profile_id, destination, type); diff --git a/db_scripts/diff/13127.up b/db_scripts/diff/13127.up index 53ae7546..5b88e3fe 100644 --- a/db_scripts/diff/13127.up +++ b/db_scripts/diff/13127.up @@ -4,5 +4,5 @@ ALTER TABLE billing_fees ADD COLUMN direction enum('in', 'out') NOT NULL DEFAULT 'out' AFTER destination; ALTER TABLE billing_fees DROP KEY profdestype_idx; -ALTER TABLE billing_fees ADD KEY profdesdirtype_idx +ALTER TABLE billing_fees ADD UNIQUE KEY profdesdirtype_idx (billing_profile_id, destination, direction, type); diff --git a/db_scripts/diff/13216.down b/db_scripts/diff/13216.down new file mode 100644 index 00000000..5f2bc043 --- /dev/null +++ b/db_scripts/diff/13216.down @@ -0,0 +1,3 @@ +USE provisioning; + +DELETE FROM language_strings WHERE code = 'Web.Fees.InvalidDirection'; diff --git a/db_scripts/diff/13216.up b/db_scripts/diff/13216.up new file mode 100644 index 00000000..9c6c43e0 --- /dev/null +++ b/db_scripts/diff/13216.up @@ -0,0 +1,8 @@ +USE provisioning; + +SET AUTOCOMMIT=0; +INSERT INTO language_strings (code, language, string) VALUES ('Web.Fees.InvalidDirection', 'en', 'Invalid fee direction'); +INSERT INTO language_strings (code, language, string) VALUES ('Web.Fees.InvalidDirection', 'de', 'Ungültige Gebühren-Richtung'); +INSERT INTO language_strings (code, language, string) VALUES ('Web.Fees.InvalidDirection', 'fr', 'Invalid fee direction'); +INSERT INTO language_strings (code, language, string) VALUES ('Web.Fees.InvalidDirection', 'es', 'Invalid fee direction'); +COMMIT;