mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-14 12:14:33 +01:00
Fix migration
This commit is contained in:
@@ -11,7 +11,7 @@ export default class Posts extends BaseSchema {
|
||||
.references('translations.id')
|
||||
.onDelete('CASCADE')
|
||||
table
|
||||
.integer('post_color_id')
|
||||
.integer('color_id')
|
||||
.unsigned()
|
||||
.references('post_colors.id')
|
||||
.onDelete('CASCADE')
|
||||
@@ -20,7 +20,7 @@ export default class Posts extends BaseSchema {
|
||||
|
||||
public async down () {
|
||||
this.schema.table(this.tableName, (table) => {
|
||||
table.dropColumns('content_id', 'post_color_id')
|
||||
table.dropColumns('content_id', 'color_id')
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user