Fix migration

Signed-off-by: Arthur DANJOU <arthurdanjou@outlook.fr>
This commit is contained in:
2021-07-03 18:41:04 +02:00
parent 2aa7c28a73
commit 696736fda8

View File

@@ -4,8 +4,8 @@ export default class GuestbookMessages extends BaseSchema {
protected tableName = 'guestbook_messages'
public async up() {
await this.schema.table(this.tableName, (table) => {
table.dropColumn('message')
await this.schema.table(this.tableName, async (table) => {
await table.dropColumn('message')
table.text('message')
})
}