From 6ce8fa49eaa9550951f355da3060b6c9f91010bf Mon Sep 17 00:00:00 2001
From: Chen Chao Shih <jcfrank7@gmail.com>
Date: Thu, 1 May 2014 23:26:08 +0800
Subject: [PATCH] Add 'IF EXISTS', otherwise an error would show on MySQL that
 has no 'gogs' created before.

---
 conf/mysql.sql | 4 ++--
 1 file 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;