mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-02-02 21:07:50 +01:00
Fix
This commit is contained in:
@@ -5,13 +5,13 @@ export default class Projects extends BaseSchema {
|
||||
|
||||
public async up () {
|
||||
this.schema.table(this.tableName, (table) => {
|
||||
table.integer('cover_id').unsigned().references('files.id').onDelete('CASCADE')
|
||||
table.integer('file_id').unsigned().references('files.id').onDelete('CASCADE')
|
||||
})
|
||||
}
|
||||
|
||||
public async down () {
|
||||
this.schema.table(this.tableName, (table) => {
|
||||
table.dropColumn('cover_id')
|
||||
table.dropColumn('file_id')
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user