From de092e0e478e2cca54c2be0d2f3e774684ae5a8d Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Fri, 17 Apr 2020 16:49:39 +0200 Subject: [PATCH] sql: Add column daemon_flags We'd like to have a daemon flag, namely "exclusive". This flag should be published by the daemon into the database, so that is visible to the web interface. Although we currently need only a single boolean flag, make it a integer, so that we can add more flags at a later time without changing the database scheme. --- mysql/create_tables.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mysql/create_tables.sql b/mysql/create_tables.sql index 3cf4f348..ba6e800f 100644 --- a/mysql/create_tables.sql +++ b/mysql/create_tables.sql @@ -165,6 +165,8 @@ CREATE TABLE IF NOT EXISTS mxq_daemon ( daemon_start TIMESTAMP NOT NULL DEFAULT 0, daemon_stop TIMESTAMP NOT NULL DEFAULT 0, + daemon_flags INT4 NOT NULL DEFAULT 0, + INDEX (daemon_name(64)), INDEX (hostname(64)) );