Merge pull request #181 from khaiql/master

Fix cannot migrate database if using Postgres
This commit is contained in:
astaxie 2016-04-22 10:40:18 +08:00
commit 7322451c91
1 changed files with 1 additions and 1 deletions

View File

@ -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"
}