2012-10-02 Dario Rodriguez <dario.rodriguez@artica.es>

* extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql: Fixed
        several errors in mysql migration script to 5.0 version.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7028 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
darode 2012-10-02 11:51:46 +00:00
parent 7ea22f7939
commit e042c58e74
2 changed files with 57 additions and 51 deletions

View File

@ -1,3 +1,8 @@
2012-10-02 Dario Rodriguez <dario.rodriguez@artica.es>
* extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql: Fixed
several errors in mysql migration script to 5.0 version.
2012-10-02 Sergio Martin <sergio.martin@artica.es>
* include/functions_menu.php: Fix another screen

View File

@ -96,6 +96,7 @@ ALTER TABLE `tplanned_downtime` ADD COLUMN `type_periodicity` varchar(100) NOT N
-- ----------------------------------------------------------------------
DELETE FROM tplanned_downtime_agents
WHERE id_downtime NOT IN (SELECT id FROM tplanned_downtime);
ALTER TABLE tplanned_downtime_agents MODIFY `id_downtime` mediumint(8) NOT NULL;
ALTER TABLE tplanned_downtime_agents
ADD FOREIGN KEY(`id_downtime`) REFERENCES tplanned_downtime(`id`)
ON DELETE CASCADE;