Skip to content

Commit

Permalink
sql: Add column tags to mxq_daemon
Browse files Browse the repository at this point in the history
mxq_daemon.prerequisites should be renamed to tags. Add the
new name as a new column. The old column prerequisites will be reused
for another purpose.

Make both columns into VARCHAR(1000) for consistency, where 1000 is an
arbitary big enough number.
  • Loading branch information
donald committed Mar 29, 2021
1 parent a9bead0 commit cba024c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mysql/create_tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ CREATE TABLE IF NOT EXISTS mxq_daemon (
daemon_stop TIMESTAMP NOT NULL DEFAULT 0,

daemon_flags INT4 NOT NULL DEFAULT 0,
prerequisites VARCHAR(1024) NOT NULL DEFAULT '',
prerequisites VARCHAR(1000) NOT NULL DEFAULT '',
tags VARCHAR(1000) NOT NULL DEFAULT '',

INDEX (daemon_name(64)),
INDEX (hostname(64))
Expand Down

0 comments on commit cba024c

Please sign in to comment.