Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

609 B
Raw Blame
import { columnNames } from '../migration-utils';
import { Migration } from '@mikro-orm/migrations';

/**
 * Legacy migration step 71 (`db/migrations.ts`).
 *
 * Remove the stored config column from photo_providers now that it is generated
 * from the provider id.
 */
export class Migration20200101011100_step_071 extends Migration {
  override name = 'Migration20200101011100_step_071';

  override async up(): Promise<void> {
    const names = await columnNames(this, 'photo_providers');
    if (!names.has('config')) return;
    await this.execute(`ALTER TABLE photo_providers DROP COLUMN config`);
  }
}