mirror of
https://github.com/immich-app/immich.git
synced 2026-02-14 12:58:17 +03:00
refactor(server): add isProgressive column (#25537)
* add isProgressive column * don't select isProgressive by default * linting * exclude sidecars
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import { Kysely, sql } from 'kysely';
|
||||
|
||||
export async function up(db: Kysely<any>): Promise<void> {
|
||||
await sql`ALTER TABLE "asset_file" ADD "isProgressive" boolean NOT NULL DEFAULT false;`.execute(db);
|
||||
}
|
||||
|
||||
export async function down(db: Kysely<any>): Promise<void> {
|
||||
await sql`ALTER TABLE "asset_file" DROP COLUMN "isProgressive";`.execute(db);
|
||||
}
|
||||
@@ -40,4 +40,7 @@ export class AssetFileTable {
|
||||
|
||||
@Column({ type: 'boolean', default: false })
|
||||
isEdited!: Generated<boolean>;
|
||||
|
||||
@Column({ type: 'boolean', default: false })
|
||||
isProgressive!: Generated<boolean>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user