mirror of
https://github.com/beego/bee.git
synced 2024-12-23 01:30:50 +00:00
Merge pull request #181 from khaiql/master
Fix cannot migrate database if using Postgres
This commit is contained in:
commit
7322451c91
@ -244,7 +244,7 @@ func selectMigrationsTableSql(driver string) string {
|
||||
case "mysql":
|
||||
return "DESC migrations"
|
||||
case "postgres":
|
||||
return "SELECT * FROM migrations ORDER BY id_migration;"
|
||||
return "SELECT * FROM migrations WHERE false ORDER BY id_migration;"
|
||||
default:
|
||||
return "DESC migrations"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user