X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=sql%2Fcore_domain.sql;h=468c975f0ac1005a4de44a9517e8525b6439c76b;hb=c1af5e6bb6064e88469651271f4d9aaff34d69c0;hp=f991b9984dfee931be39e595499859a66c2cb496;hpb=879d540ddbd7a408f85f8ebfab74624d0191d7f9;p=Pman.Core diff --git a/sql/core_domain.sql b/sql/core_domain.sql index f991b998..468c975f 100644 --- a/sql/core_domain.sql +++ b/sql/core_domain.sql @@ -2,7 +2,9 @@ CREATE TABLE core_domain ( id int(11) NOT NULL auto_increment, PRIMARY KEY (id) -); +) ENGINE=innodb DEFAULT CHARSET=utf8 ; +-- need to specify engine set, otherwise the unique index get's borked. +ALTER TABLE core_domain ADD COLUMN domain VARCHAR(255) NOT NULL DEFAULT ''; -ALTER TABLE core_domain ADD COLUMN domain VARCHAR(256) NOT NULL DEFAULT ''; \ No newline at end of file +CREATE UNIQUE INDEX ui_domain ON core_domain (domain); \ No newline at end of file