Changeset 420 for veekun/trunk/script/gallery.sql
- Timestamp:
- 03/18/08 02:09:04 (2 years ago)
- Files:
-
- 1 modified
-
veekun/trunk/script/gallery.sql (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
veekun/trunk/script/gallery.sql
r406 r420 15 15 16 16 DROP TABLE IF EXISTS creators; 17 SET @saved_cs_client = @@character_set_client; 18 SET character_set_client = utf8; 17 19 CREATE TABLE creators ( 18 20 id int(10) unsigned NOT NULL auto_increment, … … 22 24 PRIMARY KEY (id) 23 25 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 26 SET character_set_client = @saved_cs_client; 24 27 25 28 -- … … 28 31 29 32 DROP TABLE IF EXISTS gallery; 33 SET @saved_cs_client = @@character_set_client; 34 SET character_set_client = utf8; 30 35 CREATE TABLE gallery ( 31 36 id int(10) unsigned NOT NULL auto_increment, … … 37 42 `hash` varchar(32) NOT NULL default '', 38 43 title varchar(48) NOT NULL default '', 39 description text NOT NULL,44 description mediumtext NOT NULL, 40 45 height smallint(5) unsigned NOT NULL default '0', 41 46 width smallint(5) unsigned NOT NULL default '0', … … 45 50 PRIMARY KEY (id), 46 51 UNIQUE KEY filename (filename) 47 ) ENGINE=MyISAM DEFAULT CHARSET=latin1; 52 ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 53 SET character_set_client = @saved_cs_client; 48 54 49 55 -- … … 52 58 53 59 DROP TABLE IF EXISTS gallery_keywords; 60 SET @saved_cs_client = @@character_set_client; 61 SET character_set_client = utf8; 54 62 CREATE TABLE gallery_keywords ( 55 63 id int(10) unsigned NOT NULL auto_increment, … … 59 67 PRIMARY KEY (id), 60 68 UNIQUE KEY keyword (keyword) 61 ) ENGINE=MyISAM DEFAULT CHARSET=latin1; 69 ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 70 SET character_set_client = @saved_cs_client; 62 71 63 72 -- … … 66 75 67 76 DROP TABLE IF EXISTS item_keywords; 77 SET @saved_cs_client = @@character_set_client; 78 SET character_set_client = utf8; 68 79 CREATE TABLE item_keywords ( 69 80 itemid int(10) unsigned NOT NULL default '0', … … 72 83 KEY itemid (itemid), 73 84 KEY keywordid (keywordid) 74 ) ENGINE=MyISAM DEFAULT CHARSET=latin1; 85 ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 86 SET character_set_client = @saved_cs_client; 75 87 /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 76 88
