mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Database schema cleanup (#9064)
* target db_schema * Database schema cleanup Remove several inconsistencies (mostly with data types and lengths) Make things a bit nicer to implement with Laravel database migrations. poller* tables had f'd up indexes * Update tests, extra noise because db returns numeric types now. * Update test data again. * fix 253 migration for mysql 5.3
This commit is contained in:
+1
-1
@@ -1,3 +1,3 @@
|
||||
CREATE TABLE `poller_cluster` (`id` int(11) NOT NULL AUTO_INCREMENT, `node_id` varchar(255) NOT NULL, `poller_name` varchar(255) NOT NULL, `poller_version` varchar(255) NOT NULL DEFAULT '', `poller_groups` varchar(255) NOT NULL DEFAULT '', `last_report` datetime NOT NULL, `master` tinyint(1) NOT NULL, PRIMARY KEY (`node_id`), UNIQUE KEY `id` (`id`));
|
||||
CREATE TABLE `poller_cluster_stats` (`id` int(11) NOT NULL AUTO_INCREMENT, `parent_poller` varchar(255) NOT NULL DEFAULT '', `poller_type` varchar(255) NOT NULL DEFAULT '', `depth` int(11) unsigned NOT NULL, `devices` int(11) unsigned NOT NULL, `worker_seconds` double unsigned NOT NULL, `workers` int(11) unsigned NOT NULL, `frequency` int(11) unsigned NOT NULL, PRIMARY KEY (`parent_poller`,`poller_type`), UNIQUE KEY `id` (`id`));
|
||||
CREATE TABLE `poller_cluster_stats` (`id` int(11) NOT NULL AUTO_INCREMENT, `parent_poller` int(11) NOT NULL DEFAULT 0, `poller_type` varchar(64) NOT NULL DEFAULT '', `depth` int(11) unsigned NOT NULL, `devices` int(11) unsigned NOT NULL, `worker_seconds` double unsigned NOT NULL, `workers` int(11) unsigned NOT NULL, `frequency` int(11) unsigned NOT NULL, PRIMARY KEY (`parent_poller`,`poller_type`), UNIQUE KEY `id` (`id`));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user