aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen Chao Shih <jcfrank7@gmail.com>2014-05-01 23:26:08 +0800
committerfrankts_chen <jcfrank7@gmail.com>2014-05-01 23:58:48 +0800
commit6ce8fa49eaa9550951f355da3060b6c9f91010bf (patch)
treec88b3e2a13b015c63e609b5d57fe586259f70ec6
parent46af92c57e0d0d71f45d13d0b4bacb91ed2db16b (diff)
downloadgitea-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.sql4
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;