Lint and update

This commit is contained in:
2021-11-10 12:06:58 +01:00
parent dabdb26e9a
commit e1b4d2e1a5
118 changed files with 2477 additions and 778 deletions

View File

@@ -3,7 +3,7 @@ import BaseSchema from '@ioc:Adonis/Lucid/Schema'
export default class Posts extends BaseSchema {
protected tableName = 'posts'
public async up () {
public async up() {
this.schema.table(this.tableName, (table) => {
table
.integer('content_id')
@@ -18,7 +18,7 @@ export default class Posts extends BaseSchema {
})
}
public async down () {
public async down() {
this.schema.table(this.tableName, (table) => {
table.dropColumns('content_id', 'color_id')
})