Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: enable grpc server reflection * add server reflection to Probes list * fix(eventstore): new column to test clock_timestamp() * fix(eventstore): use creation_date for existing columns * fix(eventstore): backfill column * fix(step11): execute step 10 to make sure events are in correct order * chore: speed up local console docker build (#5824) Co-authored-by: Livio Spring <livio.a@gmail.com> * docs(legal): editorial changes (#5828) * docs(legal): editorial changes * remove from tos * docs: add generated docs to gitignore (#5827) * fix: set exhausted cookie with env json (#5868) * fix: set exhausted cookie with env json * lint * docs(nginx): fix nginx directory, system api proto description (#5809) Co-authored-by: Elio Bischof <elio@zitadel.com> * docs(contributing): don't repeat yourself (#5869) * ng 16 * material cdk * module imports, rmn @accounts * deps * lint * buf * cache to registry * push * var * ref * vars * so? * next * new buildx * params --------- Co-authored-by: Tim Möhlmann <tim+github@zitadel.com> Co-authored-by: Elio Bischof <elio@zitadel.com> Co-authored-by: Livio Spring <livio.a@gmail.com> Co-authored-by: mffap <mpa@zitadel.com> Co-authored-by: kotoriのねこ <minamiktr@outlook.com> Co-authored-by: Max Peintner <max@caos.ch>
- Loading branch information
1 parent
3327061
commit 7384b5f
Showing
41 changed files
with
2,901 additions
and
2,282 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package setup | ||
|
||
import ( | ||
"context" | ||
_ "embed" | ||
|
||
"github.com/zitadel/zitadel/internal/database" | ||
) | ||
|
||
var ( | ||
//go:embed 11.sql | ||
addEventCreatedAt string | ||
) | ||
|
||
type AddEventCreatedAt struct { | ||
step10 *CorrectCreationDate | ||
dbClient *database.DB | ||
} | ||
|
||
func (mig *AddEventCreatedAt) Execute(ctx context.Context) error { | ||
// execute step 10 again because events created after the first execution of step 10 | ||
// could still have the wrong ordering of sequences and creation date | ||
if err := mig.step10.Execute(ctx); err != nil { | ||
return err | ||
} | ||
_, err := mig.dbClient.ExecContext(ctx, addEventCreatedAt) | ||
return err | ||
} | ||
|
||
func (mig *AddEventCreatedAt) String() string { | ||
return "11_event_created_at" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
BEGIN; | ||
-- create table with empty created_at | ||
ALTER TABLE eventstore.events ADD COLUMN created_at TIMESTAMPTZ DEFAULT NULL; | ||
COMMIT; | ||
|
||
BEGIN; | ||
-- backfill created_at | ||
UPDATE eventstore.events SET created_at = creation_date WHERE created_at IS NULL; | ||
COMMIT; | ||
|
||
BEGIN; | ||
-- set column rules | ||
ALTER TABLE eventstore.events ALTER COLUMN created_at SET DEFAULT clock_timestamp(); | ||
ALTER TABLE eventstore.events ALTER COLUMN created_at SET NOT NULL; | ||
COMMIT; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.