Just wondered if others would find this useful...
I'd like to see a new command so when using the command line I can do
sql-migrate new udf-ParseDate
and it create a templated file in the ./migration folder (or what ever this is set in the config) named <current epoch>-<name>.sql, eg: 1443610373-udf-ParseDate.sql
The templating would have the -- +migrate Up and -- +migrate Down defined.
An enhancement to this would be to take the name and scan for the last migration matching the name and populate the migrate Down section of the template from the last migrate Up script.
Comments appreciated, if people like this I'll look at PR.
Just wondered if others would find this useful...
I'd like to see a
newcommand so when using the command line I can doand it create a templated file in the
./migrationfolder (or what ever this is set in the config) named<current epoch>-<name>.sql, eg:1443610373-udf-ParseDate.sqlThe templating would have the
-- +migrate Upand-- +migrate Downdefined.An enhancement to this would be to take the
nameand scan for the last migration matching the name and populate themigrate Downsection of the template from the lastmigrate Upscript.Comments appreciated, if people like this I'll look at PR.