mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-14 20:19:26 +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')
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,12 +9,12 @@ export default class Announces extends BaseSchema {
|
||||
table.string('color')
|
||||
table.string('hover_color')
|
||||
table
|
||||
.integer('message_id')
|
||||
.integer('translation_id')
|
||||
.unsigned()
|
||||
.references('translations.id')
|
||||
.onDelete('CASCADE')
|
||||
table
|
||||
.integer('cover_id')
|
||||
.integer('file_id')
|
||||
.unsigned()
|
||||
.references('files.id')
|
||||
.onDelete('CASCADE')
|
||||
|
||||
Reference in New Issue
Block a user