mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-02-02 21:07:50 +01:00
Rework migrations schemes
This commit is contained in:
@@ -6,9 +6,9 @@ export default class Locations extends BaseSchema {
|
||||
public async up () {
|
||||
this.schema.createTable(this.tableName, (table) => {
|
||||
table.increments('id').primary()
|
||||
table.string('place')
|
||||
table.string('left')
|
||||
table.date('since')
|
||||
table.string('place').notNullable()
|
||||
table.string('left').notNullable()
|
||||
table.date('since').notNullable()
|
||||
table.timestamps(true, true)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user