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 '[]'`);
  }
}
