Browse Source

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

'gogs' created before.
pull/152/head
Chen Chao Shih 11 years ago committed by frankts_chen
parent
commit
6ce8fa49ea
  1. 2
      conf/mysql.sql

2
conf/mysql.sql

@ -1,2 +1,2 @@
DROP DATABASE gogs; DROP DATABASE IF EXISTS gogs;
CREATE DATABASE IF NOT EXISTS gogs CHARACTER SET utf8 COLLATE utf8_general_ci; CREATE DATABASE IF NOT EXISTS gogs CHARACTER SET utf8 COLLATE utf8_general_ci;
Loading…
Cancel
Save