mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-24 05:38:46 +00:00
refactor: relational organization projection to use repository (#11621)
- Transitioned from using `handler.Statements` to a repository pattern for managing organization data in migrations. - Introduced a new method to set the updated timestamp for organizations. - Updated the projection logic to utilize the repository for creating, updating, and deleting organization records.
This commit is contained in:
@@ -71,8 +71,10 @@ type organizationConditions interface {
|
||||
type organizationChanges interface {
|
||||
// SetName sets the name column.
|
||||
SetName(name string) database.Change
|
||||
// SetState sets the name column.
|
||||
// SetState sets the state column.
|
||||
SetState(state OrgState) database.Change
|
||||
// SetUpdatedAt sets the updated at column.
|
||||
SetUpdatedAt(updatedAt time.Time) database.Change
|
||||
}
|
||||
|
||||
//go:generate mockgen -typed -package domainmock -destination ./mock/org.mock.go . OrganizationRepository
|
||||
|
||||
Reference in New Issue
Block a user