mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-22 06:28:24 +00:00
feat(db): adding org table to relational model
This commit is contained in:
@@ -87,6 +87,22 @@ func (c *Config) Connect(useAdmin bool) (*sql.DB, *pgxpool.Pool, error) {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
// Checken & Egg problem:
|
||||
// conn.Exec(ctx, "CREATE SCHEMA IF NOT EXISTS zitadel")
|
||||
// conn.Exec(ctx, `
|
||||
// CREATE TYPE zitadel.organization_state AS ENUM (
|
||||
// 'ACTIVE',
|
||||
// 'INACTIVE'
|
||||
// )`,
|
||||
// )
|
||||
|
||||
// orgState, err := conn.LoadType(ctx, "zitadel.organization_state")
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// conn.TypeMap().RegisterType(orgState)
|
||||
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user