Skip to content

Commit

Permalink
sql: create_tables: Add default character set to tables
Browse files Browse the repository at this point in the history
Add default characer set option to the mxq tables, so that we don't
depend on the default character set of the database or the server.
  • Loading branch information
donald committed Feb 17, 2024
1 parent b4b4d87 commit 9aee649
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mysql/create_tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ CREATE TABLE IF NOT EXISTS mxq_group (

INDEX(group_id),
INDEX(group_name)
);
) DEFAULT CHARSET=latin1;

CREATE TABLE IF NOT EXISTS mxq_job (
job_id INT8 UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
Expand Down Expand Up @@ -127,7 +127,7 @@ CREATE TABLE IF NOT EXISTS mxq_job (
INDEX (host_id(128)),
INDEX (host_hostname(64)),
INDEX (server_id(64))
);
) DEFAULT CHARSET=latin1;

CREATE TABLE IF NOT EXISTS mxq_daemon (
daemon_id INT4 UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
Expand Down Expand Up @@ -169,4 +169,4 @@ CREATE TABLE IF NOT EXISTS mxq_daemon (

INDEX (daemon_name(64)),
INDEX (hostname(64))
);
) DEFAULT CHARSET=latin1;

0 comments on commit 9aee649

Please sign in to comment.