This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
-- Apply only to the isolated Classic character database.
|
||||
CREATE TABLE IF NOT EXISTS azerothai_roster (
|
||||
guid INT UNSIGNED PRIMARY KEY,
|
||||
account_id INT UNSIGNED NOT NULL,
|
||||
name VARCHAR(12) NOT NULL UNIQUE,
|
||||
enabled BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
plot_armor BOOLEAN NOT NULL DEFAULT FALSE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
CREATE TABLE IF NOT EXISTS azerothai_commands (
|
||||
id VARCHAR(36) PRIMARY KEY,
|
||||
guid INT UNSIGNED NOT NULL,
|
||||
account_id INT UNSIGNED NOT NULL,
|
||||
name VARCHAR(12) NOT NULL,
|
||||
kind VARCHAR(20) NOT NULL,
|
||||
argument TEXT NOT NULL,
|
||||
peer_guid INT UNSIGNED NOT NULL DEFAULT 0,
|
||||
peer_account_id INT UNSIGNED NOT NULL DEFAULT 0,
|
||||
peer_name VARCHAR(12) NOT NULL DEFAULT '',
|
||||
expires_at BIGINT UNSIGNED NOT NULL,
|
||||
created_at BIGINT UNSIGNED NOT NULL,
|
||||
status VARCHAR(16) NOT NULL DEFAULT 'pending',
|
||||
result TEXT,
|
||||
delivered BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
INDEX pending (status,created_at)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
CREATE TABLE IF NOT EXISTS azerothai_snapshots (
|
||||
guid INT UNSIGNED PRIMARY KEY,
|
||||
at BIGINT UNSIGNED NOT NULL,
|
||||
payload MEDIUMTEXT NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
Reference in New Issue
Block a user