File tree Expand file tree Collapse file tree
apps/api/src/query/builders Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ import { createQueryBuilder, METRICS } from '../utils'
44export const performanceBuilders : Record < string , ParameterBuilder > = {
55 slow_pages : createQueryBuilder ( {
66 metricSet : METRICS . performance ,
7- nameColumn : 'path' ,
8- groupByColumns : [ 'path' ] ,
7+ nameColumn : 'cutQueryString( path) ' ,
8+ groupByColumns : [ 'cutQueryString( path) ' ] ,
99 extraWhere : "load_time > 0 AND path != ''" ,
1010 orderBy : 'avg_load_time DESC'
1111 } ) ,
Original file line number Diff line number Diff line change 11import { drizzle } from 'drizzle-orm/node-postgres' ;
2- import { migrate } from 'drizzle-orm/node-postgres/migrator' ;
32import * as schema from './drizzle/schema' ;
43import * as relations from './drizzle/relations' ;
54
@@ -12,10 +11,4 @@ if (!databaseUrl) {
1211 throw new Error ( 'DATABASE_URL is not set' ) ;
1312}
1413
15- export const db = drizzle ( databaseUrl , { schema : fullSchema } ) ;
16-
17- const migrateDb = async ( ) => {
18- await migrate ( db , { migrationsFolder : 'drizzle/migrations' } ) ;
19- }
20-
21- migrateDb ( ) ;
14+ export const db = drizzle ( databaseUrl , { schema : fullSchema } ) ;
You can’t perform that action at this time.
0 commit comments