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 3075e22642..c454f8349f 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 @@ -1283,4 +1283,10 @@ ALTER TABLE twidget_dashboard MODIFY options LONGTEXT NOT NULL default ""; -- --------------------------------------------------------------------- -- Table `trecon_task` -- --------------------------------------------------------------------- -ALTER TABLE trecon_task ADD `alias_as_name` int(2) unsigned default '0'; \ No newline at end of file +ALTER TABLE trecon_task ADD `alias_as_name` int(2) unsigned default '0'; + +-- --------------------------------------------------------------------- +-- Table `twidget` AND Table `twidget_dashboard` +-- --------------------------------------------------------------------- +UPDATE twidget_dashboard SET id_widget = (SELECT id FROM twidget WHERE unique_name = 'graph_module_histogram') WHERE id_widget = (SELECT id FROM twidget WHERE unique_name = 'graph_availability'); +DELETE FROM twidget WHERE unique_name = 'graph_availability'; \ No newline at end of file