12 lines
400 B
TypeScript
12 lines
400 B
TypeScript
|
|
import { BaseMigration } from './base-migration.ts';
|
||
|
|
import type { TQueryFunction } from '../types.ts';
|
||
|
|
|
||
|
|
export class Migration017ServicePublishedPorts extends BaseMigration {
|
||
|
|
readonly version = 17;
|
||
|
|
readonly description = 'Add raw published port declarations to services';
|
||
|
|
|
||
|
|
up(query: TQueryFunction): void {
|
||
|
|
query(`ALTER TABLE services ADD COLUMN published_ports TEXT DEFAULT '[]'`);
|
||
|
|
}
|
||
|
|
}
|