Adding Migrate Command (#872)

This commit is contained in:
Todd Knight authored and GitHub committed 2021-01-25 14:43:50 -07:00
1 parent 5de4befb58
commit 1f9fcad1cd
25 files changed
+590 -650

No files matched your search

+1 -1
View File
@@ -427,7 +427,7 @@ func NewTestController(t *testing.T, opts *TestControllerOpts) *TestController {
if opts.DatabaseUrl != "" {
tc.b.DatabaseUrl = opts.DatabaseUrl
if _, err := schema.InitStore(ctx, "postgres", tc.b.DatabaseUrl); err != nil {
if _, err := schema.MigrateStore(ctx, "postgres", tc.b.DatabaseUrl); err != nil {
t.Fatal(err)
}
if err := tc.b.ConnectToDatabase("postgres"); err != nil {