Support for migration files format (specifically, dbmate)
#609
TheCoreMan
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Love this project!!!
So, migration files in dbmate have a specific format and some assumptions built in:
Assumptions that don't work well with the linter include:
migrate:up and migrate:down implicitly run in a transaction
But
Running statement while holding ACCESS EXCLUSIVE lockon thedowncommands.transaction: falsemigrate:up and migrate:down are actually separate commands
But the linter raises valid lints like pglint/safety/multipleAlterTable.
What do y'all feel about creating some specific parsers and marking files using some comments/frontmatter/external config to mark them as dbmate-style files?
Beta Was this translation helpful? Give feedback.
All reactions