mirror of
https://github.com/samsonjs/immich.git
synced 2026-04-27 15:07:45 +00:00
fix(server): migration mentions public schema (#15622)
This commit is contained in:
parent
9d8072b994
commit
d4a9eed4a1
1 changed files with 2 additions and 2 deletions
|
|
@ -3,10 +3,10 @@ import { MigrationInterface, QueryRunner } from 'typeorm';
|
||||||
export class AddTimeBucketIndices1734574016301 implements MigrationInterface {
|
export class AddTimeBucketIndices1734574016301 implements MigrationInterface {
|
||||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||||
await queryRunner.query(
|
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(
|
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_day_of_month"`);
|
||||||
await queryRunner.query(`DROP INDEX "IDX_month"`);
|
await queryRunner.query(`DROP INDEX "IDX_month"`);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue