Files
artdanj-api/database/migrations/1633697377760_commands_runs.ts

18 lines
413 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)
}
}