project-nomad/admin/database/migrations/1768453747522_update_services_add_icon.ts
2026-01-15 15:54:59 -08:00

18 lines
369 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('icon').nullable()
})
}
async down() {
this.schema.alterTable(this.tableName, (table) => {
table.dropColumn('icon')
})
}
}