增加对sqlite数据库的支持 默认模式为mysql数据库
This commit is contained in:
@@ -39,7 +39,7 @@ system:
|
||||
use-multipoint: false
|
||||
env: 'public' # Change to "develop" to skip authentication for development mode
|
||||
addr: 8888
|
||||
db-type: sqlite
|
||||
db-type: "mysql"
|
||||
|
||||
# captcha configuration
|
||||
captcha:
|
||||
|
@@ -13,6 +13,8 @@ func main() {
|
||||
initialize.Mysql()
|
||||
case "sqlite":
|
||||
initialize.Sqlite()
|
||||
default:
|
||||
initialize.Mysql()
|
||||
}
|
||||
initialize.DBTables()
|
||||
// 程序结束前关闭数据库链接
|
||||
|
Reference in New Issue
Block a user