Files
artdanj-api/database/migrations/1633697377760_commands_runs.ts
2021-11-10 12:06:58 +01:00

18 lines
411 B
TypeScript

import BaseSchema from '@ioc:Adonis/Lucid/Schema'
export default class CommandsRuns extends BaseSchema {
protected tableName = 'commands_runs'
public async up() {
this.schema.createTable(this.tableName, (table) => {
table.increments('id').primary()
table.bigInteger('commands')
table.string('date')
})
}
public async down() {
this.schema.dropTable(this.tableName)
}
}