Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: principal table (#15644)

p0nyc6fc415193a7
diff --git a/backend/demo/demo.go b/backend/demo/demo.go
index c2f005a9c5..12584a0a6d 100644
--- a/backend/demo/demo.go
+++ b/backend/demo/demo.go
@@ -23,7 +23,7 @@ func LoadDemoData(ctx context.Context, pgURL string) error {
// SELECT pg_catalog.set_config('search_path', '', false);
var ok bool
if err := db.QueryRowContext(ctx,
- `SELECT EXISTS (SELECT 1 FROM information_schema.tables WHERE table_name = 'environment')`,
+ `SELECT EXISTS (SELECT 1 FROM information_schema.tables WHERE table_name = 'principal')`,
).Scan(&ok); err != nil {
return err
}
diff --git a/backend/migrator/migrator.go b/backend/migrator/migrator.go
index e557097d6e..f485ddbc9e 100644
--- a/backend/migrator/migrator.go
+++ b/backend/migrator/migrator.go
@@ -40,7 +40,7 @@ func MigrateSchema(ctx context.Context, pgURL string) error {
var ok bool
if err := conn.QueryRowContext(ctx,
- `SELECT EXISTS (SELECT 1 FROM information_schema.tables WHERE table_name = 'environment')`,
+ `SELECT EXISTS (SELECT 1 FROM information_schema.tables WHERE table_name = 'principal')`,
).Scan(&ok); err != nil {
return err
}