Merge branch '1071-Formulario-gráfica-combinada-automática-open' into 'develop'
Add column id_server to tgraph_source and fix metaconsole automatic_graph report_template - #1071 See merge request !634
This commit is contained in:
commit
03cb255562
|
@ -1402,3 +1402,21 @@ ALTER TABLE tpolicy_modules MODIFY post_process double(24,15) default 0;
|
|||
-- ---------------------------------------------------------------------
|
||||
|
||||
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;
|
Loading…
Reference in New Issue