mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-26 17:40:27 +01:00
Lint and update
This commit is contained in:
@@ -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')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user