Skip to content

Commit 7d48056

Browse files
Delete legacy_registry_model column from projects table (#6260)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 57599e5 commit 7d48056

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { type MigrationExecutor } from '../pg-migrator';
2+
3+
// Deletes the legacy registry model column
4+
// https://github.com/graphql-hive/console/pull/6259
5+
6+
export default {
7+
name: '2025.01.20T00-00-00.legacy-registry-model-removal.ts',
8+
9+
run: ({ sql }) => sql`
10+
ALTER TABLE projects DROP COLUMN IF EXISTS legacy_registry_model;
11+
`,
12+
} satisfies MigrationExecutor;

packages/migrations/src/run-pg-migrations.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,5 +156,6 @@ export const runPGMigrations = async (args: { slonik: DatabasePool; runTo?: stri
156156
await import('./actions/2025.01.10T00.00.00.breaking-changes-request-count'),
157157
await import('./actions/2025.01.13T10-08-00.default-role'),
158158
await import('./actions/2025.01.17T10-08-00.drop-activities'),
159+
await import('./actions/2025.01.20T00-00-00.legacy-registry-model-removal'),
159160
],
160161
});

packages/services/storage/src/db/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ export interface projects {
223223
git_repository: string | null;
224224
github_check_with_project_name: boolean;
225225
id: string;
226-
legacy_registry_model: boolean;
227226
name: string;
228227
native_federation: boolean | null;
229228
org_id: string;

0 commit comments

Comments
 (0)