Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
359cb9b
commit 3596971
Showing
4 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
SQLITE_CONN_STRING: :memory: | ||
SQLITE_CONN_STRING=:memory: | ||
PG_CONN_STRING="user=postgres dbname=gormigrate_test sslmode=disable" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// +build postgresql | ||
|
||
package gormigrate | ||
|
||
import ( | ||
_ "github.com/jinzhu/gorm/dialects/postgres" | ||
) | ||
|
||
func init() { | ||
databases = append(databases, database{ | ||
name: "postgres", | ||
connEnv: "PG_CONN_STRING", | ||
}) | ||
} |