mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
examples: use AutoApprove in 'atlas schema apply' examples (#4366)
This commit is contained in:
@@ -37,8 +37,9 @@ func TestViews(t *testing.T) {
|
||||
_, err = ac.SchemaApply(ctx, &atlasexec.SchemaApplyParams{
|
||||
// URL to your database. For example:
|
||||
// postgres://postgres:pass@localhost:5432/database?search_path=public&sslmode=disable
|
||||
URL: os.Getenv("DB_URL"),
|
||||
Env: "local",
|
||||
URL: os.Getenv("DB_URL"),
|
||||
Env: "local",
|
||||
AutoApprove: true,
|
||||
})
|
||||
require.NoError(t, err)
|
||||
t.Cleanup(func() {
|
||||
|
||||
Reference in New Issue
Block a user