Skip to content

Commit

Permalink
refactor: use schema.alterTable in alter template (#724)
Browse files Browse the repository at this point in the history
  • Loading branch information
targos authored Sep 22, 2021
1 parent ca560e1 commit bf15645
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/migration-alter.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
})
}
}

0 comments on commit bf15645

Please sign in to comment.