import { type MigrationExecutor } from '../pg-migrator';

// Deletes the legacy registry model column
// https://github.com/graphql-hive/console/pull/6259

export default {
  name: '2025.01.20T00-00-00.legacy-registry-model-removal.ts',

  run: ({ psql }) => psql`
    ALTER TABLE projects DROP COLUMN IF EXISTS legacy_registry_model;
  `,
} satisfies MigrationExecutor;
