From 16b0da1515fe327b56d89d1e041030ce5b9a78da Mon Sep 17 00:00:00 2001 From: Ramon Novoa Date: Thu, 15 Jun 2017 10:33:30 +0200 Subject: [PATCH] Add a missing MR. --- pandora_console/extras/mr/3.sql | 19 +++++++++++++++++++ pandora_console/pandoradb_data.sql | 4 ++-- 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 pandora_console/extras/mr/3.sql diff --git a/pandora_console/extras/mr/3.sql b/pandora_console/extras/mr/3.sql new file mode 100644 index 0000000000..b1eb40cc50 --- /dev/null +++ b/pandora_console/extras/mr/3.sql @@ -0,0 +1,19 @@ +START TRANSACTION; + +DROP PROCEDURE IF EXISTS addcol_oum706; + +delimiter '//' +CREATE PROCEDURE addcol_oum706() BEGIN + IF NOT EXISTS ( + SELECT * FROM information_schema.columns WHERE table_name='treport_content' AND column_name='historical_db' + ) THEN + ALTER TABLE treport_content ADD COLUMN historical_db tinyint(1) UNSIGNED NOT NULL default 0; + END IF; +END; +// + +delimiter ';' +CALL addcol_oum706(); +DROP PROCEDURE addcol_oum706; + +COMMIT; diff --git a/pandora_console/pandoradb_data.sql b/pandora_console/pandoradb_data.sql index 7772072110..6d0d21afc6 100644 --- a/pandora_console/pandoradb_data.sql +++ b/pandora_console/pandoradb_data.sql @@ -109,10 +109,10 @@ INSERT INTO `tconfig` (`token`, `value`) VALUES ('custom_report_front_logo', 'images/pandora_logo_white.jpg'), ('custom_report_front_header', ''), ('custom_report_front_footer', ''), -('MR', 2), +('MR', 3), ('identification_reminder', 1), ('identification_reminder_timestamp', 0), -('current_package_enterprise', '705'), +('current_package_enterprise', '706'), ('post_process_custom_values', '{"0.00000038580247":"Seconds to months","0.00000165343915":"Seconds to weeks","0.00001157407407":"Seconds to days","0.01666666666667":"Seconds to minutes","0.00000000093132":"Bytes to Gigabytes","0.00000095367432":"Bytes to Megabytes","0.0009765625":"Bytes to Kilobytes","0.00000001653439":"Timeticks to weeks","0.00000011574074":"Timeticks to days"}'); UNLOCK TABLES;