Skip to content
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

types: allow no models argument for automigrate #1839

Merged
merged 1 commit into from
May 12, 2020

Conversation

bajtos
Copy link
Member

@bajtos bajtos commented May 12, 2020

Fix type definitions to allow zero-argument invocation of the following database migration methods:

  • DataSource.automigrate()
  • DataSource.autoupdate()

Implementation-wise, when no model names are specified, then ALL models attached to the datasource are migrated.

Checklist

👉 Read and sign the CLA (Contributor License Agreement) 👈

  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • Commit messages are following our guidelines

Fix type definitions to allow zero-argument invocation of
the following database migration methods:
  - `DataSource.automigrate()`
  - `DataSource.autoupdate()`

Implementation-wise, when no model names are specified, then ALL models
attached to the datasource are migrated.

Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
@bajtos bajtos force-pushed the fix-types/datasource-migrate branch from ab50055 to 4c53aba Compare May 12, 2020 13:40
Copy link
Contributor

@jannyHou jannyHou left a comment

Choose a reason for hiding this comment

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

👍

@bajtos bajtos merged commit 259c0b9 into master May 12, 2020
@delete-merged-branch delete-merged-branch bot deleted the fix-types/datasource-migrate branch May 12, 2020 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants