Adding Migrate Command (#872)
This commit is contained in:
1 parent
5de4befb58
commit
1f9fcad1cd
25 files changed
+590
-650
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user