-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix migration validation issue #6154
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ required: | |
- status | ||
- created_at | ||
- updated_at | ||
additionalProperties: false | ||
additionalProperties: true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Make the attempts schema forward compatible before the file-based migration system is removed. |
||
properties: | ||
id: | ||
type: number | ||
|
@@ -25,8 +25,6 @@ properties: | |
type: ["null", object] | ||
status: | ||
type: string | ||
temporal_workflow_id: | ||
type: ["null", string] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This schema is used for validation in the file-based migration system, which does not know the existence of this property created by Flyway. |
||
created_at: | ||
# todo should be datetime. | ||
type: string | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not necessary. But I feel that we should be extra cautious now. This change makes the migration idempotent. Even if the user's database is in a weird state (e.g. this column is manually added), it will work.