From 68803706d4d18c7abb77d95c97308b4c7a12896c Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Wed, 8 Mar 2017 13:53:24 +0100 Subject: [PATCH] Add querys to remove from DB graph availability widget. Gitlab: #470 --- .../extras/pandoradb_migrate_6.0_to_7.0.mysql.sql | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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