rubenv / sql-migrate

SQL schema migration tool for Go.
MIT License
3.23k stars 280 forks source link

feat: allow only comment #76

Closed yesnault closed 7 years ago

yesnault commented 7 years ago

In previous version of sql-migrate, it was ok to write "-- +migrate Down" with just a comment. Now, on master, it's not possible anymore.

This PR will allow user to comment a section without having a sql instruction. The comments are also ignored properly.

Example: " -- +migrate Down -- no migration here "

rubenv commented 7 years ago

Excellent stuff, thanks!