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 cede2c70bd..a629abc0ad 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 @@ -1401,4 +1401,22 @@ ALTER TABLE tpolicy_modules MODIFY post_process double(24,15) default 0; -- Table `tserver_export` -- --------------------------------------------------------------------- -ALTER TABLE tserver_export MODIFY `name` varchar(600) BINARY NOT NULL default ''; \ No newline at end of file +ALTER TABLE tserver_export MODIFY `name` varchar(600) BINARY NOT NULL default ''; + +-- --------------------------------------------------------------------- +-- Table `tgraph_source` column 'id_server' +-- --------------------------------------------------------------------- + +START TRANSACTION; + +SET @st_oum707 = (SELECT IF( + (SELECT COUNT(*) FROM INFORMATION_SCHEMA.COLUMNS WHERE table_name = 'tgraph_source' AND table_schema = DATABASE() AND column_name = 'id_server') > 0, + "SELECT 1", + "ALTER TABLE tgraph_source ADD COLUMN id_server int(11) UNSIGNED NOT NULL default 0" +)); + +PREPARE pr_oum707 FROM @st_oum707; +EXECUTE pr_oum707; +DEALLOCATE PREPARE pr_oum707; + +COMMIT; \ No newline at end of file