diff --git a/templates/migration-alter.txt b/templates/migration-alter.txt index 46d871b0..7bc4f551 100644 --- a/templates/migration-alter.txt +++ b/templates/migration-alter.txt @@ -4,12 +4,12 @@ export default class {{#toClassName}}{{ filename }}{{/toClassName}} extends Base protected tableName = '{{#toTableName}}{{ filename }}{{/toTableName}}' public async up () { - this.schema.table(this.tableName, (table) => { + this.schema.alterTable(this.tableName, (table) => { }) } public async down () { - this.schema.table(this.tableName, (table) => { + this.schema.alterTable(this.tableName, (table) => { }) } }