mirror of https://github.com/status-im/migrate.git
Support for alternative postgres URI scheme
According to the PostgreSQL documentation (section 32.1.1.2), postgres library supports two URI schemes: postgresql:// and postgres:// Reference: https://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-CONNSTRING
This commit is contained in:
parent
9f974b8996
commit
bc93ed027f
|
@ -13,7 +13,9 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
database.Register("postgres", &Postgres{})
|
db := Postgres{}
|
||||||
|
database.Register("postgres", &db)
|
||||||
|
database.Register("postgresql", &db)
|
||||||
}
|
}
|
||||||
|
|
||||||
var DefaultMigrationsTable = "schema_migrations"
|
var DefaultMigrationsTable = "schema_migrations"
|
||||||
|
|
Loading…
Reference in New Issue