mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-30 11:27:50 +01:00
Fix
This commit is contained in:
@@ -5,13 +5,13 @@ export default class Projects extends BaseSchema {
|
|||||||
|
|
||||||
public async up () {
|
public async up () {
|
||||||
this.schema.table(this.tableName, (table) => {
|
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 () {
|
public async down () {
|
||||||
this.schema.table(this.tableName, (table) => {
|
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('color')
|
||||||
table.string('hover_color')
|
table.string('hover_color')
|
||||||
table
|
table
|
||||||
.integer('message_id')
|
.integer('translation_id')
|
||||||
.unsigned()
|
.unsigned()
|
||||||
.references('translations.id')
|
.references('translations.id')
|
||||||
.onDelete('CASCADE')
|
.onDelete('CASCADE')
|
||||||
table
|
table
|
||||||
.integer('cover_id')
|
.integer('file_id')
|
||||||
.unsigned()
|
.unsigned()
|
||||||
.references('files.id')
|
.references('files.id')
|
||||||
.onDelete('CASCADE')
|
.onDelete('CASCADE')
|
||||||
|
|||||||
Reference in New Issue
Block a user