Skip to content

Commit

Permalink
Remove activity db leftovers (#6398)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilkisiela authored Jan 22, 2025
1 parent 91e361e commit 0e4be14
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .changeset/dry-news-join.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'hive': patch
---

Remove the db leftovers related to activities (no longer a thing)
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { type MigrationExecutor } from '../pg-migrator';

export default {
name: '2025.01.17T10-08-00.drop-activities.ts',
run: ({ sql }) => sql`
DROP TABLE IF EXISTS "activities";
`,
} satisfies MigrationExecutor;
1 change: 1 addition & 0 deletions packages/migrations/src/run-pg-migrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,5 +155,6 @@ export const runPGMigrations = async (args: { slonik: DatabasePool; runTo?: stri
await import('./actions/2025.01.09T00-00-00.legacy-member-scopes'),
await import('./actions/2025.01.10T00.00.00.breaking-changes-request-count'),
await import('./actions/2025.01.13T10-08-00.default-role'),
await import('./actions/2025.01.17T10-08-00.drop-activities'),
],
});
12 changes: 0 additions & 12 deletions packages/services/storage/src/db/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,6 @@ export type breaking_change_formula = 'PERCENTAGE' | 'REQUEST_COUNT';
export type schema_policy_resource = 'ORGANIZATION' | 'PROJECT';
export type user_role = 'ADMIN' | 'MEMBER';

export interface activities {
activity_metadata: any;
activity_type: string;
created_at: Date;
id: string;
organization_id: string;
project_id: string | null;
target_id: string | null;
user_id: string;
}

export interface alert_channels {
created_at: Date;
id: string;
Expand Down Expand Up @@ -418,7 +407,6 @@ export interface versions {
}

export interface DBTables {
activities: activities;
alert_channels: alert_channels;
alerts: alerts;
app_deployments: app_deployments;
Expand Down

0 comments on commit 0e4be14

Please sign in to comment.