1741855225608_ocr_records.ts 387 B

12345678910111213141516
  1. import BaseSchema from '@ioc:Adonis/Lucid/Schema'
  2. export default class extends BaseSchema {
  3. protected tableName = 'ocr_records'
  4. public async up () {
  5. this.schema.alterTable(this.tableName, (table) => {
  6. table.string('content').notNullable()
  7. table.string('detail').notNullable()
  8. })
  9. }
  10. public async down () {
  11. this.schema.dropTable(this.tableName)
  12. }
  13. }