examples: use AutoApprove in 'atlas schema apply' examples (#4366)

This commit is contained in:
Ariel Mashraki
2025-04-01 21:10:31 +03:00
committed by GitHub
parent 5db3e3fb83
commit 1b6159ac6e
22 changed files with 76 additions and 44 deletions

View File

@@ -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() {