mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 02:35:49 +08:00
Check error for CreateDatabase()
This commit is contained in:
parent
3c30222fce
commit
4f5396c70e
@ -55,8 +55,12 @@ func InitAdapter() {
|
||||
|
||||
func CreateTables(createDatabase bool) {
|
||||
if createDatabase {
|
||||
adapter.CreateDatabase()
|
||||
err := adapter.CreateDatabase()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
|
||||
adapter.createTable()
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user