From 69188d8decd66e6fd95b70cc880b2f15ce75372c Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Fri, 23 Apr 2010 09:54:34 +0000 Subject: [PATCH] 2010-04-23 Sergio Martin * pandoradb.sql extras/pandoradb_migrate_v3.0_to_v3.1.sql: Dropped the foreign key between treport and tgrupo git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2599 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ pandora_console/extras/pandoradb_migrate_v3.0_to_v3.1.sql | 2 ++ pandora_console/pandoradb.sql | 4 +--- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index d1de0b54cf..76a0033ac8 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2010-04-23 Sergio Martin + + * pandoradb.sql + extras/pandoradb_migrate_v3.0_to_v3.1.sql: Dropped the + foreign key between treport and tgrupo + 2010-04-23 Sergio Martin * godmode/servers/manage_recontask_form.php: diff --git a/pandora_console/extras/pandoradb_migrate_v3.0_to_v3.1.sql b/pandora_console/extras/pandoradb_migrate_v3.0_to_v3.1.sql index ffc4ef719d..e00965238c 100644 --- a/pandora_console/extras/pandoradb_migrate_v3.0_to_v3.1.sql +++ b/pandora_console/extras/pandoradb_migrate_v3.0_to_v3.1.sql @@ -4,6 +4,8 @@ ALTER TABLE tagente ADD `update_gis_data` TINYINT(1) NOT NULL DEFAULT '1' COMMEN ALTER TABLE `tgraph_source` CHANGE `weight` `weight` float(5,3) UNSIGNED NOT NULL DEFAULT 0; +ALTER TABLE treport DROP FOREIGN KEY treport_ibfk_1; + ALTER TABLE `tserver_export` ADD `timezone_offset` TINYINT(2) NULL DEFAULT '0' COMMENT 'Nuber of hours of diference with the server timezone'; ALTER TABLE `tserver` ADD `lag_time` int(11) NOT NULL default 0; diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index 29fbfe7122..1832619f16 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -757,9 +757,7 @@ CREATE TABLE IF NOT EXISTS `treport` ( `footer` MEDIUMTEXT default NULL, `custom_font` varchar(200) default NULL, - PRIMARY KEY(`id_report`), - FOREIGN KEY (`id_group`) REFERENCES tgrupo(`id_grupo`) - ON UPDATE CASCADE ON DELETE CASCADE + PRIMARY KEY(`id_report`) ) ENGINE = InnoDB DEFAULT CHARSET=utf8; CREATE TABLE IF NOT EXISTS `treport_content` (