OSDN Git Service

チャットルームの管理機能を/chat/adminに移動した
[webchat/WebChat.git] / init.sql
index a86107b..e41a128 100644 (file)
--- a/init.sql
+++ b/init.sql
@@ -1,17 +1,8 @@
-CREATE DATABASE IF NOT EXISTS profile;
 grant select,
        insert,
        delete,
+       create,
+       drop,
        update on *.* to user identified by 'user';
 flush privileges;
-use profile;
-drop table list;
-create table list(name VARCHAR(64) NOT NULL,
-       age SMALLINT  UNSIGNED DEFAULT 0,
-       height SMALLINT  UNSIGNED DEFAULT 0,
-       weight SMALLINT  UNSIGNED DEFAULT 0,
-       race VARCHAR(64),
-       password VARCHAR(16),
-       lastmodified DATETIME,
-       etc TEXT,
-       PRIMARY KEY(name));
+CREATE DATABASE IF NOT EXISTS webchat DEFAULT CHARSET=utf8;