project-nomad/admin/database/migrations/1763499145832_update_services_table.ts
2025-11-18 14:02:22 -08:00

19 lines
469 B
TypeScript

import { BaseSchema } from '@adonisjs/lucid/schema'
export default class extends BaseSchema {
protected tableName = 'services'
async up() {
this.schema.alterTable(this.tableName, (table) => {
table.string('friendly_name').nullable()
table.string('description').nullable()
})
}
async down() {
this.schema.alterTable(this.tableName, (table) => {
table.dropColumn('friendly_name')
table.dropColumn('description')
})
}
}