1
0
mirror of https://github.com/beego/bee.git synced 2024-11-22 20:20:55 +00:00

fix cannot migrate with Postgres

This commit is contained in:
Scott Le 2016-03-01 10:08:04 +07:00
parent 1566ca7da1
commit 1767458b66

View File

@ -244,7 +244,7 @@ func selectMigrationsTableSql(driver string) string {
case "mysql": case "mysql":
return "DESC migrations" return "DESC migrations"
case "postgres": case "postgres":
return "SELECT * FROM migrations ORDER BY id_migration;" return "SELECT * FROM migrations WHERE false ORDER BY id_migration;"
default: default:
return "DESC migrations" return "DESC migrations"
} }