Added UNIQUE for charInfo table

Added UNIQUE for charInfo table.
This commit is contained in:
EmosewaMC 2022-01-08 00:00:27 -08:00
parent 8ed7690b96
commit b529b7d3a0

View File

@ -15,7 +15,7 @@ DROP TABLE IF EXISTS charinfo;
CREATE TABLE charinfo (
id BIGINT NOT NULL PRIMARY KEY,
account_id INT NOT NULL REFERENCES accounts(id),
name VARCHAR(35) NOT NULL,
name VARCHAR(35) NOT NULL UNIQUE,
pending_name VARCHAR(35) NOT NULL,
needs_rename BOOLEAN NOT NULL DEFAULT FALSE,
prop_clone_id BIGINT UNSIGNED AUTO_INCREMENT UNIQUE,