diff --git a/pandora_console/extras/mr/36.sql b/pandora_console/extras/mr/36.sql new file mode 100644 index 0000000000..d3de281be5 --- /dev/null +++ b/pandora_console/extras/mr/36.sql @@ -0,0 +1,5 @@ +START TRANSACTION; + +ALTER TABLE `tpolicies` ADD COLUMN `force_apply` tinyint(1) default 0; + +COMMIT; \ No newline at end of file diff --git a/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql b/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql index 20451647a1..4adf6abfdf 100644 --- a/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql +++ b/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql @@ -160,6 +160,8 @@ CREATE TABLE IF NOT EXISTS `tpolicies` ( PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; +ALTER TABLE `tpolicies` ADD COLUMN `force_apply` tinyint(1) default 0; + -- ----------------------------------------------------- -- Table `tpolicy_alerts` -- ----------------------------------------------------- diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index 741a0dc1d8..23d0661036 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -2375,8 +2375,9 @@ CREATE TABLE IF NOT EXISTS `tpolicies` ( `id` int(10) unsigned NOT NULL auto_increment, `name` text NOT NULL default '', `description` varchar(255) NOT NULL default '', - `id_group` int(10) unsigned default '0', - `status` int(10) unsigned NOT NULL default 0, + `id_group` int(10) unsigned default '0', + `status` int(10) unsigned NOT NULL default 0, + `force_apply` tinyint(1) default 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;