File tree Expand file tree Collapse file tree 4 files changed +14
-12
lines changed Expand file tree Collapse file tree 4 files changed +14
-12
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' hive ' : patch
3
+ ---
4
+
5
+ Remove the db leftovers related to activities (no longer a thing)
Original file line number Diff line number Diff line change
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 ;
Original file line number Diff line number Diff line change @@ -155,5 +155,6 @@ export const runPGMigrations = async (args: { slonik: DatabasePool; runTo?: stri
155
155
await import ( './actions/2025.01.09T00-00-00.legacy-member-scopes' ) ,
156
156
await import ( './actions/2025.01.10T00.00.00.breaking-changes-request-count' ) ,
157
157
await import ( './actions/2025.01.13T10-08-00.default-role' ) ,
158
+ await import ( './actions/2025.01.17T10-08-00.drop-activities' ) ,
158
159
] ,
159
160
} ) ;
Original file line number Diff line number Diff line change @@ -13,17 +13,6 @@ export type breaking_change_formula = 'PERCENTAGE' | 'REQUEST_COUNT';
13
13
export type schema_policy_resource = 'ORGANIZATION' | 'PROJECT' ;
14
14
export type user_role = 'ADMIN' | 'MEMBER' ;
15
15
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
-
27
16
export interface alert_channels {
28
17
created_at : Date ;
29
18
id : string ;
@@ -418,7 +407,6 @@ export interface versions {
418
407
}
419
408
420
409
export interface DBTables {
421
- activities : activities ;
422
410
alert_channels : alert_channels ;
423
411
alerts : alerts ;
424
412
app_deployments : app_deployments ;
You can’t perform that action at this time.
0 commit comments