Fix migration

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

View File

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