Fixed module relationships. Ticket#2766

This commit is contained in:
Arturo Gonzalez Diaz 2015-10-07 14:01:49 +02:00
parent 5c1fdcde8a
commit 2d36697db8
2 changed files with 2 additions and 1 deletions

View File

@ -163,6 +163,7 @@ DROP TABLE `tgis_map_has_tgis_map_connection`;
ALTER TABLE `tmodule_relationship` ALTER TABLE `tmodule_relationship`
--ADD COLUMN `id_rt` int(10) unsigned NOT NULL DEFAULT 0, --ADD COLUMN `id_rt` int(10) unsigned NOT NULL DEFAULT 0,
ADD FOREIGN KEY (`id_rt`) REFERENCES trecon_task(`id_rt`) ON DELETE CASCADE; ADD FOREIGN KEY (`id_rt`) REFERENCES trecon_task(`id_rt`) ON DELETE CASCADE;
ALTER TABLE tmodule_relationship MODIFY `id_rt` int(10) unsigned NULL default NULL;
-- --------------------------------------------------------------------- -- ---------------------------------------------------------------------
-- Table `tevent_filter` -- Table `tevent_filter`

View File

@ -697,7 +697,7 @@ CREATE TABLE IF NOT EXISTS `trecon_task` (
-- ---------------------------------------------------------------------- -- ----------------------------------------------------------------------
CREATE TABLE IF NOT EXISTS `tmodule_relationship` ( CREATE TABLE IF NOT EXISTS `tmodule_relationship` (
`id` int(10) unsigned NOT NULL auto_increment, `id` int(10) unsigned NOT NULL auto_increment,
`id_rt` int(10) unsigned NOT NULL DEFAULT 0, `id_rt` int(10) unsigned DEFAULT NULL,
`module_a` int(10) unsigned NOT NULL, `module_a` int(10) unsigned NOT NULL,
`module_b` int(10) unsigned NOT NULL, `module_b` int(10) unsigned NOT NULL,
`disable_update` tinyint(1) unsigned NOT NULL default '0', `disable_update` tinyint(1) unsigned NOT NULL default '0',