mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-13 23:27:35 +00:00
fixup! fixup! fixup! fixup! fixup! fixup! Merge branch 'clean-transactional-propsal' into instance_table
This commit is contained in:
@@ -4,7 +4,6 @@ import (
|
||||
"context"
|
||||
|
||||
"github.com/zitadel/zitadel/internal/eventstore"
|
||||
old_handler "github.com/zitadel/zitadel/internal/eventstore/handler"
|
||||
"github.com/zitadel/zitadel/internal/eventstore/handler/v2"
|
||||
"github.com/zitadel/zitadel/internal/repository/instance"
|
||||
"github.com/zitadel/zitadel/internal/zerrors"
|
||||
@@ -22,25 +21,6 @@ func (*instanceRelationalProjection) Name() string {
|
||||
return InstanceRelationalProjectionTable
|
||||
}
|
||||
|
||||
func (*instanceRelationalProjection) Init() *old_handler.Check {
|
||||
return handler.NewTableCheck(
|
||||
handler.NewTable([]*handler.InitColumn{
|
||||
handler.NewColumn(InstanceColumnID, handler.ColumnTypeText),
|
||||
handler.NewColumn(InstanceColumnName, handler.ColumnTypeText, handler.Default("")),
|
||||
handler.NewColumn(InstanceColumnDefaultOrgID, handler.ColumnTypeText, handler.Default("")),
|
||||
handler.NewColumn(InstanceColumnProjectID, handler.ColumnTypeText, handler.Default("")),
|
||||
handler.NewColumn(InstanceColumnConsoleID, handler.ColumnTypeText, handler.Default("")),
|
||||
handler.NewColumn(InstanceColumnConsoleAppID, handler.ColumnTypeText, handler.Default("")),
|
||||
handler.NewColumn(InstanceColumnDefaultLanguage, handler.ColumnTypeText, handler.Default("")),
|
||||
handler.NewColumn(CreatedAt, handler.ColumnTypeTimestamp),
|
||||
handler.NewColumn(UpdatedAt, handler.ColumnTypeTimestamp),
|
||||
handler.NewColumn(DeletedAt, handler.ColumnTypeTimestamp),
|
||||
},
|
||||
handler.NewPrimaryKey(InstanceColumnID),
|
||||
),
|
||||
)
|
||||
}
|
||||
|
||||
func (p *instanceRelationalProjection) Reducers() []handler.AggregateReducer {
|
||||
return []handler.AggregateReducer{
|
||||
{
|
||||
|
Reference in New Issue
Block a user