Support "Plain" SQL migration files #350
sermojohn
started this conversation in
Feature Ideas
Replies: 1 comment
-
I'm open to a PR supporting separate |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It is currently required to mark SQL migration files with
-- migrate:up
and-- migrate:down
.I guess that using SQL comments provides an area for useful features for the migration tool. However, it also couples the SQL migrations to the tool.
What if dbmate supported plain SQL files using
.up.sql
and.down.sql
suffix, so migrations are not coupled to the dbmate syntax and use dbmate in a standard way, without using comments in the migrations. This would make SQL migration files indeed plain.Beta Was this translation helpful? Give feedback.
All reactions