mr updates and a pretty icon
This commit is contained in:
parent
e37cdc4459
commit
5c25fa8406
|
@ -44,6 +44,11 @@ ALTER TABLE `talert_special_days` ADD COLUMN `day_code` tinyint(2) unsigned NOT
|
||||||
ALTER TABLE `talert_special_days` DROP COLUMN `same_day`;
|
ALTER TABLE `talert_special_days` DROP COLUMN `same_day`;
|
||||||
ALTER TABLE `talert_special_days` ADD FOREIGN KEY (`id_calendar`) REFERENCES `talert_calendar`(`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
ALTER TABLE `talert_special_days` ADD FOREIGN KEY (`id_calendar`) REFERENCES `talert_calendar`(`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
ALTER TABLE `tipam_network` ADD COLUMN `id_site` bigint unsigned;
|
||||||
|
ALTER TABLE `tipam_network` ADD CONSTRAINT FOREIGN KEY (`id_site`) REFERENCES `tipam_sites`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
||||||
|
ALTER TABLE `tipam_supernet` ADD COLUMN `id_site` bigint unsigned;
|
||||||
|
ALTER TABLE `tipam_supernet` ADD CONSTRAINT FOREIGN KEY (`id_site`) REFERENCES `tipam_sites`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
||||||
|
|
||||||
INSERT IGNORE INTO `talert_calendar` VALUES (1, 'Default', 0, 'Default calendar');
|
INSERT IGNORE INTO `talert_calendar` VALUES (1, 'Default', 0, 'Default calendar');
|
||||||
UPDATE `talert_special_days` set `day_code` = 1 WHERE `same_day` = 'monday';
|
UPDATE `talert_special_days` set `day_code` = 1 WHERE `same_day` = 'monday';
|
||||||
UPDATE `talert_special_days` set `day_code` = 2 WHERE `same_day` = 'tuesday';
|
UPDATE `talert_special_days` set `day_code` = 2 WHERE `same_day` = 'tuesday';
|
||||||
|
|
|
@ -3970,15 +3970,18 @@ CREATE TABLE IF NOT EXISTS `tipam_network` (
|
||||||
`network` varchar(100) NOT NULL default '',
|
`network` varchar(100) NOT NULL default '',
|
||||||
`name_network` varchar(255) default '',
|
`name_network` varchar(255) default '',
|
||||||
`description` text NOT NULL,
|
`description` text NOT NULL,
|
||||||
`location` tinytext NOT NULL,
|
`location` int(10) unsigned NULL,
|
||||||
`id_recon_task` int(10) unsigned NOT NULL,
|
`id_recon_task` int(10) unsigned NOT NULL,
|
||||||
`scan_interval` tinyint(2) default 1,
|
`scan_interval` tinyint(2) default 1,
|
||||||
`monitoring` tinyint(2) default 0,
|
`monitoring` tinyint(2) default 0,
|
||||||
`id_group` mediumint(8) unsigned NULL default 0,
|
`id_group` mediumint(8) unsigned NULL default 0,
|
||||||
`lightweight_mode` tinyint(2) default 0,
|
`lightweight_mode` tinyint(2) default 0,
|
||||||
`users_operator` text,
|
`users_operator` text,
|
||||||
|
`id_site` bigint unsigned,
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
FOREIGN KEY (`id_recon_task`) REFERENCES trecon_task(`id_rt`) ON DELETE CASCADE
|
FOREIGN KEY (`id_recon_task`) REFERENCES trecon_task(`id_rt`) ON DELETE CASCADE,
|
||||||
|
FOREIGN KEY (`location`) REFERENCES `tipam_network_location`(`id`) ON DELETE CASCADE,
|
||||||
|
FOREIGN KEY (`id_site`) REFERENCES `tipam_sites`(`id`) ON DELETE SET NULL ON UPDATE CASCADE
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `tipam_ip` (
|
CREATE TABLE IF NOT EXISTS `tipam_ip` (
|
||||||
|
@ -4033,7 +4036,9 @@ CREATE TABLE IF NOT EXISTS `tipam_supernet` (
|
||||||
`address` varchar(250) NOT NULL,
|
`address` varchar(250) NOT NULL,
|
||||||
`mask` varchar(250) NOT NULL,
|
`mask` varchar(250) NOT NULL,
|
||||||
`subneting_mask` varchar(250) default '',
|
`subneting_mask` varchar(250) default '',
|
||||||
PRIMARY KEY (`id`)
|
`id_site` bigint unsigned,
|
||||||
|
PRIMARY KEY (`id`),
|
||||||
|
FOREIGN KEY (`id_site`) REFERENCES `tipam_sites`(`id`) ON DELETE SET NULL ON UPDATE CASCADE
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `tipam_supernet_network` (
|
CREATE TABLE IF NOT EXISTS `tipam_supernet_network` (
|
||||||
|
@ -4062,9 +4067,6 @@ CREATE TABLE IF NOT EXISTS `tipam_sites` (
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
INSERT IGNORE INTO `tipam_network_location` (`name`) SELECT `location` FROM `tipam_network` WHERE `location` <> '';
|
INSERT IGNORE INTO `tipam_network_location` (`name`) SELECT `location` FROM `tipam_network` WHERE `location` <> '';
|
||||||
UPDATE `tipam_network` INNER JOIN `tipam_network_location` ON tipam_network_location.name=tipam_network.location SET tipam_network.location=tipam_network_location.id;
|
|
||||||
ALTER TABLE `tipam_network` MODIFY `location` int(10) unsigned NULL;
|
|
||||||
ALTER TABLE `tipam_network` ADD FOREIGN KEY (`location`) REFERENCES `tipam_network_location`(`id`) ON DELETE CASCADE;
|
|
||||||
|
|
||||||
SET @insert_type = 3;
|
SET @insert_type = 3;
|
||||||
SET @insert_name = 'IPAM Recon';
|
SET @insert_name = 'IPAM Recon';
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 5.8 KiB |
|
@ -3986,9 +3986,11 @@ CREATE TABLE IF NOT EXISTS `tipam_network` (
|
||||||
`id_group` mediumint(8) unsigned NULL default 0,
|
`id_group` mediumint(8) unsigned NULL default 0,
|
||||||
`lightweight_mode` tinyint(2) default 0,
|
`lightweight_mode` tinyint(2) default 0,
|
||||||
`users_operator` text,
|
`users_operator` text,
|
||||||
|
`id_site` bigint unsigned,
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
FOREIGN KEY (`id_recon_task`) REFERENCES trecon_task(`id_rt`) ON DELETE CASCADE,
|
FOREIGN KEY (`id_recon_task`) REFERENCES trecon_task(`id_rt`) ON DELETE CASCADE,
|
||||||
FOREIGN KEY (`location`) REFERENCES `tipam_network_location`(`id`) ON DELETE CASCADE
|
FOREIGN KEY (`location`) REFERENCES `tipam_network_location`(`id`) ON DELETE CASCADE,
|
||||||
|
FOREIGN KEY (`id_site`) REFERENCES `tipam_sites`(`id`) ON DELETE SET NULL ON UPDATE CASCADE
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
-- ----------------------------------------------------------------------
|
-- ----------------------------------------------------------------------
|
||||||
|
@ -4055,7 +4057,9 @@ CREATE TABLE IF NOT EXISTS `tipam_supernet` (
|
||||||
`address` varchar(250) NOT NULL,
|
`address` varchar(250) NOT NULL,
|
||||||
`mask` varchar(250) NOT NULL,
|
`mask` varchar(250) NOT NULL,
|
||||||
`subneting_mask` varchar(250) default '',
|
`subneting_mask` varchar(250) default '',
|
||||||
PRIMARY KEY (`id`)
|
`id_site` bigint unsigned,
|
||||||
|
PRIMARY KEY (`id`),
|
||||||
|
FOREIGN KEY (`id_site`) REFERENCES `tipam_sites`(`id`) ON DELETE SET NULL ON UPDATE CASCADE
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
-- ----------------------------------------------------------------------
|
-- ----------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue