diff options
author | 无闻 <joe2010xtmf@163.com> | 2014-05-01 12:15:31 -0400 |
---|---|---|
committer | 无闻 <joe2010xtmf@163.com> | 2014-05-01 12:15:31 -0400 |
commit | fa1798976381ec608f4e185c2743067af5aeca41 (patch) | |
tree | c88b3e2a13b015c63e609b5d57fe586259f70ec6 | |
parent | 46af92c57e0d0d71f45d13d0b4bacb91ed2db16b (diff) | |
parent | 6ce8fa49eaa9550951f355da3060b6c9f91010bf (diff) | |
download | gitea-fa1798976381ec608f4e185c2743067af5aeca41.tar.gz gitea-fa1798976381ec608f4e185c2743067af5aeca41.zip |
Merge pull request #152 from jcfrank/master
Add 'IF EXISTS', otherwise an error would show on MySQL that has no 'gogs' created before.
-rw-r--r-- | conf/mysql.sql | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/conf/mysql.sql b/conf/mysql.sql index 6247d657bb..cacd76cf70 100644 --- a/conf/mysql.sql +++ b/conf/mysql.sql @@ -1,2 +1,2 @@ -DROP DATABASE gogs; -CREATE DATABASE IF NOT EXISTS gogs CHARACTER SET utf8 COLLATE utf8_general_ci;
\ No newline at end of file +DROP DATABASE IF EXISTS gogs; +CREATE DATABASE IF NOT EXISTS gogs CHARACTER SET utf8 COLLATE utf8_general_ci; |