Fix migration

Signed-off-by: Arthur DANJOU <arthurdanjou@outlook.fr>
This commit is contained in:
2021-07-03 18:46:51 +02:00
parent debaac81a6
commit cc049e675a
8 changed files with 0 additions and 169 deletions

View File

@@ -1,20 +0,0 @@
import BaseSchema from '@ioc:Adonis/Lucid/Schema'
export default class Projects extends BaseSchema {
protected tableName = 'projects'
public async up () {
this.schema.createTable(this.tableName, (table) => {
table.increments('id').primary()
table.string('name')
table.string('description')
table.string('url')
table.integer('progress')
table.timestamps(true, true)
})
}
public async down () {
this.schema.dropTable(this.tableName)
}
}