mysql-migrations icon indicating copy to clipboard operation
mysql-migrations copied to clipboard

Allow custom migration template

Open lewismoten opened this issue 8 months ago • 0 comments

I would like an option to provide a custom template for migrations & seeds so that the resulting output would look like the following:

const sql = require('../sql');

module.exports = {
    "up": sql``,
    "down": sql``
}

I use a VS Code plugin ( vscode-sql-template-literal ) that allows syntax highlighting of SQL within strings.

https://github.com/kawadhiya21/mysql-migrations/blob/65c52086c766d5c91508ba66c3b811682484c4b2/core_functions.js#L15

lewismoten avatar May 29 '24 19:05 lewismoten