mirror of
https://github.com/immich-app/immich.git
synced 2026-03-23 05:39:14 +03:00
feat: add isTransparent to db (#26413)
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 "isTransparent" boolean NOT NULL DEFAULT false;`.execute(db);
|
||||
}
|
||||
|
||||
export async function down(db: Kysely<any>): Promise<void> {
|
||||
await sql`ALTER TABLE "asset_file" DROP COLUMN "isTransparent";`.execute(db);
|
||||
}
|
||||
@@ -43,4 +43,7 @@ export class AssetFileTable {
|
||||
|
||||
@Column({ type: 'boolean', default: false })
|
||||
isProgressive!: Generated<boolean>;
|
||||
|
||||
@Column({ type: 'boolean', default: false })
|
||||
isTransparent!: Generated<boolean>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user