I am so fucking dumb: Fix client_roles primary key.

This commit is contained in:
Rob Nelson
2014-11-11 09:31:11 -08:00
parent 1e641084b4
commit 5418fe542e
2 changed files with 1 additions and 1 deletions

View File

@@ -114,7 +114,7 @@ CREATE TABLE client_roles (
slot INTEGER,
role TEXT NOT NULL,
preference INTEGER NOT NULL,
PRIMARY KEY ( ckey, slot ),
PRIMARY KEY ( ckey, slot, role ),
FOREIGN KEY ( ckey, slot ) REFERENCES players ( player_ckey, player_slot ) ON DELETE CASCADE
);