Skip to content

Commit

Permalink
fix(server): migration mentions public schema (#15622)
Browse files Browse the repository at this point in the history
  • Loading branch information
alextran1502 authored Jan 24, 2025
1 parent 9d8072b commit d4a9eed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/migrations/1734574016301-AddTimeBucketIndices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { MigrationInterface, QueryRunner } from 'typeorm';
export class AddTimeBucketIndices1734574016301 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`CREATE INDEX idx_local_date_time_month ON public.assets ((date_trunc('MONTH', "localDateTime" at time zone 'UTC') at time zone 'UTC'))`,
`CREATE INDEX idx_local_date_time_month ON assets ((date_trunc('MONTH', "localDateTime" at time zone 'UTC') at time zone 'UTC'))`,
);
await queryRunner.query(
`CREATE INDEX idx_local_date_time ON public.assets ((("localDateTime" at time zone 'UTC')::date))`,
`CREATE INDEX idx_local_date_time ON assets ((("localDateTime" at time zone 'UTC')::date))`,
);
await queryRunner.query(`DROP INDEX "IDX_day_of_month"`);
await queryRunner.query(`DROP INDEX "IDX_month"`);
Expand Down

0 comments on commit d4a9eed

Please sign in to comment.