mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-30 19:37:51 +01:00
18 lines
404 B
TypeScript
18 lines
404 B
TypeScript
import BaseSchema from '@ioc:Adonis/Lucid/Schema'
|
|
|
|
export default class GuestbookMessages extends BaseSchema {
|
|
protected tableName = 'guestbook_messages'
|
|
|
|
public async up() {
|
|
await this.schema.table(this.tableName, (table) => {
|
|
table.text('message')
|
|
})
|
|
}
|
|
|
|
public async down() {
|
|
await this.schema.table(this.tableName, (table) => {
|
|
table.dropColumn('message')
|
|
})
|
|
}
|
|
}
|