fix(milestones): offset the type enum (#8849)

# Which Problems Are Solved

Migration of milestones failed on our QA due to the new milestone Type
enum being 0-indexed. The valid range was 0 till 5, inclusive. While on
the previous zitadel version this was 1 till 6, inclusive.

# How the Problems Are Solved

Offset the first constant with `1`.

# Additional Changes

- none

# Additional Context

Introduced in https://github.com/zitadel/zitadel/pull/8788
This commit is contained in:
Tim Möhlmann
2024-10-31 13:03:40 +02:00
committed by GitHub
parent 692c9b7aa8
commit 9cf67f30b8
2 changed files with 9 additions and 8 deletions

View File

@@ -11,7 +11,7 @@ import (
type Type int
const (
InstanceCreated Type = iota
InstanceCreated Type = iota + 1
AuthenticationSucceededOnInstance
ProjectCreated
ApplicationCreated