Skip to content

feat: Database migrations are applied by priority. - #968

Merged
vlidholt merged 3 commits into
serverpod:mainfrom
vlidholt:migration-priority
May 29, 2023
Merged

vlidholt merged 3 commits into
serverpod:mainfrom
vlidholt:migration-priority

Conversation

@vlidholt

Copy link
Copy Markdown
Collaborator

Adds support for priority when applying database migrations. Priorities are
0: Serverpod
1: Modules
2: The server itself

This ensures dependencies from server to modules will work.

Pre-launch Checklist

  • I read the Contribute page and followed the process outlined there for submitting PRs.
  • This update contains only one single feature or bug fix and nothing else. (If you are submitting multiple fixes, please make multiple PRs.)
  • I read and followed the Dart Style Guide and formatted the code with dart format.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///), and made sure that the documentation follows the same style as other Serverpod documentation. I checked spelling and grammar.
  • I added new tests to check the change I am making.
  • All existing and new tests are passing.
  • Any breaking changes are documented below.

@Isakdl Isakdl left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

two small comments otherwise looking good.

@Isakdl Isakdl left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vlidholt
vlidholt merged commit ff39e5a into serverpod:main May 29, 2023
@github-actions github-actions Bot locked and limited conversation to collaborators May 29, 2023
@vlidholt
vlidholt deleted the migration-priority branch May 30, 2023 07:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants