Skip to content

Commit

Permalink
sql: Add column daemon_flags
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
donald committed Apr 19, 2020
1 parent 47e6d34 commit de092e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mysql/create_tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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))
);

0 comments on commit de092e0

Please sign in to comment.