Merge branch '1382-Ordenar-elementos-custom-graphs-4606-db' into 'develop'

Db changes for tgraph_source field order - #1382

See merge request artica/pandorafms!965
This commit is contained in:
nramon 2017-11-30 13:12:31 +01:00
commit 3390dc7c24
2 changed files with 2 additions and 0 deletions

View File

@ -1433,6 +1433,7 @@ ALTER TABLE tserver_export MODIFY `name` varchar(600) BINARY NOT NULL default ''
-- --------------------------------------------------------------------- -- ---------------------------------------------------------------------
ALTER TABLE tgraph_source ADD COLUMN id_server int(11) UNSIGNED NOT NULL default 0; ALTER TABLE tgraph_source ADD COLUMN id_server int(11) UNSIGNED NOT NULL default 0;
ALTER TABLE tgraph_source ADD COLUMN `order` int(10) NOT NULL default 0;
-- --------------------------------------------------------------------- -- ---------------------------------------------------------------------
-- Table `tserver_export_data` -- Table `tserver_export_data`

View File

@ -1205,6 +1205,7 @@ CREATE TABLE IF NOT EXISTS `tgraph_source` (
`id_agent_module` int(11) NOT NULL default 0, `id_agent_module` int(11) NOT NULL default 0,
`weight` float(8,3) NOT NULL DEFAULT 0, `weight` float(8,3) NOT NULL DEFAULT 0,
`label` varchar(150) DEFAULT '', `label` varchar(150) DEFAULT '',
`order` int(10) DEFAULT 0,
PRIMARY KEY(`id_gs`) PRIMARY KEY(`id_gs`)
) ENGINE = InnoDB DEFAULT CHARSET=utf8; ) ENGINE = InnoDB DEFAULT CHARSET=utf8;