]> source.dussan.org Git - gitea.git/commitdiff
Add 'IF EXISTS', otherwise an error would show on MySQL that has no
authorChen Chao Shih <jcfrank7@gmail.com>
Thu, 1 May 2014 15:26:08 +0000 (23:26 +0800)
committerfrankts_chen <jcfrank7@gmail.com>
Thu, 1 May 2014 15:58:48 +0000 (23:58 +0800)
'gogs' created before.

conf/mysql.sql

index 6247d657bb2da3369896d9f278ce24f6840f9c4c..cacd76cf70f34d5e316617d347e8f8ad6e99cbef 100644 (file)
@@ -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;