diff options
author | Chen Chao Shih <jcfrank7@gmail.com> | 2014-05-01 23:26:08 +0800 |
---|---|---|
committer | frankts_chen <jcfrank7@gmail.com> | 2014-05-01 23:58:48 +0800 |
commit | 6ce8fa49eaa9550951f355da3060b6c9f91010bf (patch) | |
tree | c88b3e2a13b015c63e609b5d57fe586259f70ec6 | |
parent | 46af92c57e0d0d71f45d13d0b4bacb91ed2db16b (diff) | |
download | gitea-6ce8fa49eaa9550951f355da3060b6c9f91010bf.tar.gz gitea-6ce8fa49eaa9550951f355da3060b6c9f91010bf.zip |
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; |