mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 10:45:47 +08:00
fix: Add the configuration of whether to print SQL. The default value is false (#429)
This commit is contained in:
parent
9fd175eefd
commit
a111fd672c
@ -6,6 +6,7 @@ copyrequestbody = true
|
|||||||
driverName = mysql
|
driverName = mysql
|
||||||
dataSourceName = root:123456@tcp(localhost:3306)/
|
dataSourceName = root:123456@tcp(localhost:3306)/
|
||||||
dbName = casdoor
|
dbName = casdoor
|
||||||
|
showSql = false
|
||||||
redisEndpoint =
|
redisEndpoint =
|
||||||
defaultStorageProvider =
|
defaultStorageProvider =
|
||||||
isCloudIntranet = false
|
isCloudIntranet = false
|
||||||
|
@ -110,6 +110,9 @@ func (a *Adapter) close() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (a *Adapter) createTable() {
|
func (a *Adapter) createTable() {
|
||||||
|
showSql, _ := beego.AppConfig.Bool("showSql")
|
||||||
|
a.Engine.ShowSQL(showSql)
|
||||||
|
|
||||||
err := a.Engine.Sync2(new(Organization))
|
err := a.Engine.Sync2(new(Organization))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user