Skip to content

Commit 0e4be14

Browse files
authored
Remove activity db leftovers (#6398)
1 parent 91e361e commit 0e4be14

File tree

4 files changed

+14
-12
lines changed

4 files changed

+14
-12
lines changed

.changeset/dry-news-join.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'hive': patch
3+
---
4+
5+
Remove the db leftovers related to activities (no longer a thing)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { type MigrationExecutor } from '../pg-migrator';
2+
3+
export default {
4+
name: '2025.01.17T10-08-00.drop-activities.ts',
5+
run: ({ sql }) => sql`
6+
DROP TABLE IF EXISTS "activities";
7+
`,
8+
} satisfies MigrationExecutor;

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

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

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

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,6 @@ export type breaking_change_formula = 'PERCENTAGE' | 'REQUEST_COUNT';
1313
export type schema_policy_resource = 'ORGANIZATION' | 'PROJECT';
1414
export type user_role = 'ADMIN' | 'MEMBER';
1515

16-
export interface activities {
17-
activity_metadata: any;
18-
activity_type: string;
19-
created_at: Date;
20-
id: string;
21-
organization_id: string;
22-
project_id: string | null;
23-
target_id: string | null;
24-
user_id: string;
25-
}
26-
2716
export interface alert_channels {
2817
created_at: Date;
2918
id: string;
@@ -418,7 +407,6 @@ export interface versions {
418407
}
419408

420409
export interface DBTables {
421-
activities: activities;
422410
alert_channels: alert_channels;
423411
alerts: alerts;
424412
app_deployments: app_deployments;

0 commit comments

Comments
 (0)