diff options
Diffstat (limited to 'tables.sql')
-rw-r--r-- | tables.sql | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -1,7 +1,11 @@ +set global innodb_large_prefix = ON; + CREATE TABLE IF NOT EXISTS theme( id INTEGER PRIMARY KEY AUTO_INCREMENT, - main TEXT NOT NULL UNIQUE, - description TEXT NOT NULL UNIQUE, + main VARCHAR(255) NOT NULL, + description VARCHAR(255) NOT NULL, votes INTEGER DEFAULT FALSE, - hidden BOOLEAN DEFAULT FALSE -); + hidden BOOLEAN DEFAULT FALSE, + + UNIQUE KEY main (main, description) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; |