Remove GuestBook

This commit is contained in:
2021-08-20 11:26:35 +02:00
parent d86ff565fb
commit 4a14426547
15 changed files with 3 additions and 401 deletions

View File

@@ -1,22 +0,0 @@
import BaseSchema from '@ioc:Adonis/Lucid/Schema'
export default class GuestbookMessages extends BaseSchema {
protected tableName = 'guestbook_messages'
public async up() {
this.schema.createTable(this.tableName, (table) => {
table.increments('id').primary()
table
.integer('user_id')
.unsigned()
.references('users.id')
.onDelete('CASCADE')
table.text('message').notNullable()
table.timestamps(true, true)
})
}
public async down() {
this.schema.dropTable(this.tableName)
}
}