mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-14 12:14:33 +01:00
Working on new version of website
Signed-off-by: Arthur DANJOU <arthurdanjou@outlook.fr>
This commit is contained in:
@@ -9,7 +9,7 @@ export default class GuestbookMessages extends BaseSchema {
|
||||
table
|
||||
.integer('user_id')
|
||||
.unsigned()
|
||||
.references('users.id')
|
||||
.references('user.id')
|
||||
.onDelete('CASCADE')
|
||||
table.text('message')
|
||||
table.timestamps(true, true)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import BaseSchema from '@ioc:Adonis/Lucid/Schema'
|
||||
|
||||
export default class Translations extends BaseSchema {
|
||||
protected tableName = 'translations'
|
||||
protected tableName = 'translation'
|
||||
|
||||
public async up () {
|
||||
this.schema.createTable(this.tableName, (table) => {
|
||||
|
||||
Reference in New Issue
Block a user