OSDN Git Service

ある特定のパターンで名前を入力すると何も表示されなくなるバグを修正した
[webchat/WebChat.git] / init.sql
index 06bf100..e41a128 100644 (file)
--- a/init.sql
+++ b/init.sql
@@ -1,18 +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,
-       gender VARCHAR(8),
-       race VARCHAR(64),
-       password VARCHAR(16),
-       lastmodified DATETIME,
-       etc TEXT,
-       PRIMARY KEY(name));
+CREATE DATABASE IF NOT EXISTS webchat DEFAULT CHARSET=utf8;