Rework migrations schemes

This commit is contained in:
2021-08-16 22:32:08 +02:00
parent e22e0b55c5
commit 09e5b2f76f
11 changed files with 32 additions and 37 deletions

View File

@@ -6,10 +6,10 @@ export default class Forms extends BaseSchema {
public async up () {
this.schema.createTable(this.tableName, (table) => {
table.increments('id').primary()
table.string('name')
table.string('email')
table.string('subject')
table.string('content')
table.string('name').notNullable()
table.string('email').notNullable()
table.string('subject').notNullable()
table.string('content').notNullable()
table.timestamps(true, true)
})
}