Add 'IF EXISTS', otherwise an error would show on MySQL that has no

'gogs' created before.
This commit is contained in:
Chen Chao Shih authored and frankts_chen committed 2014-05-01 23:58:48 +08:00
1 parent 46af92c57e
commit 6ce8fa49ea
1 file changed
+2 -2
+2 -2
View File
@@ -1,2 +1,2 @@
DROP DATABASE gogs;
CREATE DATABASE IF NOT EXISTS gogs CHARACTER SET utf8 COLLATE utf8_general_ci;
DROP DATABASE IF EXISTS gogs;
CREATE DATABASE IF NOT EXISTS gogs CHARACTER SET utf8 COLLATE utf8_general_ci;