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

migration steps reset: fix double insert #4097

Merged
merged 2 commits into from
Nov 8, 2024

Conversation

sorja
Copy link
Contributor

@sorja sorja commented Nov 8, 2024

Changes:

main file (index.ts):
ignore files ending -step-reset (dont double insert the row in db steps)

reset template and existing reset step:
use path and __filename to get current file name

reset.ts (yarn migration-steps:reset):
dont autorun the reset step - should we ? @minotogna
this requires to run migration-steps:run after resetting
i think this approach is more failsafe (requires user to run the migration steps that would be run on other instances, eg review, other developer, prod..)

@sorja sorja requested a review from minotogna November 8, 2024 08:11
@sorja sorja self-assigned this Nov 8, 2024
@sorja sorja linked an issue Nov 8, 2024 that may be closed by this pull request
@mergify mergify bot merged commit c152f97 into migrations/reset Nov 8, 2024
5 checks passed
@mergify mergify bot deleted the migrations/reset-fix branch November 8, 2024 08:20
mergify bot added a commit that referenced this pull request Nov 8, 2024
* Migration-steps: Reset

* migration steps reset: fix double insert (#4097)

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Miró Sorja <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

migration-steps reset - error
2 participants