浏览代码

Add 'IF EXISTS', otherwise an error would show on MySQL that has no
'gogs' created before.

Chen Chao Shih 11 年之前
父节点
当前提交
6ce8fa49ea
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      conf/mysql.sql

+ 2 - 2
conf/mysql.sql

@@ -1,2 +1,2 @@
-DROP DATABASE gogs;
-CREATE DATABASE IF NOT EXISTS gogs CHARACTER SET utf8 COLLATE utf8_general_ci;
+DROP DATABASE IF EXISTS gogs;
+CREATE DATABASE IF NOT EXISTS gogs CHARACTER SET utf8 COLLATE utf8_general_ci;