feat: add isTransparent to db (#26413)

This commit is contained in:
Min Idzelis
2026-02-23 16:33:52 -05:00
committed by GitHub
parent bf47147fbb
commit d14d0a9b9b
8 changed files with 90 additions and 6 deletions

View File

@@ -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);
}

View File

@@ -43,4 +43,7 @@ export class AssetFileTable {
@Column({ type: 'boolean', default: false })
isProgressive!: Generated<boolean>;
@Column({ type: 'boolean', default: false })
isTransparent!: Generated<boolean>;
}