Add a missing MR.

This commit is contained in:
Ramon Novoa 2017-06-15 13:47:20 +02:00
parent 7c3ef317b0
commit d2d56b4b89
3 changed files with 28 additions and 7 deletions

View File

@ -1,9 +1,25 @@
START TRANSACTION;
ALTER TABLE tagent_custom_fields ADD is_password_type tinyint(1) NOT NULL DEFAULT 0;
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;
IF NOT EXISTS (
SELECT * FROM information_schema.columns WHERE table_name='tpolicy_modules' AND column_name='ip_target'
) THEN
ALTER TABLE tpolicy_modules ADD COLUMN ip_target varchar(100) default '';
END IF;
END;
//
delimiter ';'
CALL addcol_oum706();
DROP PROCEDURE addcol_oum706;
COMMIT;
ALTER TABLE treport_content ADD COLUMN historical_db tinyint(1) NOT NULL DEFAULT 0;
ALTER TABLE tpolicy_modules ADD COLUMN ip_target varchar(100) default '';
COMMIT;

View File

@ -0,0 +1,5 @@
START TRANSACTION;
ALTER TABLE tagent_custom_fields ADD is_password_type tinyint(1) NOT NULL DEFAULT 0;
COMMIT;

View File

@ -109,7 +109,7 @@ 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'),