21 lines
661 B
TypeScript
21 lines
661 B
TypeScript
import { BaseSchema } from '@adonisjs/lucid/schema'
|
|
|
|
export default class extends BaseSchema {
|
|
protected tableName = 'services'
|
|
|
|
async up() {
|
|
this.schema.alterTable(this.tableName, (table) => {
|
|
// Set when a user edits a curated (non-custom) app. Tells the seeder to stop
|
|
// overwriting that service's container_config on subsequent runs, so the user's
|
|
// customizations (e.g. a changed port) survive reboots and upgrades.
|
|
table.boolean('is_user_modified').notNullable().defaultTo(false)
|
|
})
|
|
}
|
|
|
|
async down() {
|
|
this.schema.alterTable(this.tableName, (table) => {
|
|
table.dropColumn('is_user_modified')
|
|
})
|
|
}
|
|
}
|