Fix projects descriptions

This commit is contained in:
2021-08-23 12:59:48 +02:00
parent 4a14426547
commit 321342e3ae
3 changed files with 19 additions and 2 deletions

View File

@@ -7,7 +7,11 @@ export default class Projects extends BaseSchema {
this.schema.createTable(this.tableName, (table) => {
table.increments('id').primary()
table.string('name').notNullable()
table.string('description').notNullable()
table
.integer('description_id')
.unsigned()
.references('translations.id')
.onDelete('CASCADE')
table.string('url').notNullable()
table.integer('progress').notNullable()
table