mirror of
https://github.com/samsonjs/immich.git
synced 2026-04-20 13:35:54 +00:00
* fix user icons in album view * revert updateUsersV1 change * fix: UserDto merge issues * fix: update user entity * revert what I thought were merge issues turns out drift cant figure out when it needs to gen a file... * fix removed line * handle defaults for older servers * feat: checkpoint migrations * fix: use parenthesis instead of brackets * Update 1753800911775-ProfileImageCheckpointRemoval.ts * fix: sync stream updateUsersV1
25 lines
588 B
TypeScript
25 lines
588 B
TypeScript
import { Kysely, sql } from 'kysely';
|
|
|
|
export async function up(db: Kysely<any>): Promise<void> {
|
|
await sql`DELETE FROM session_sync_checkpoint
|
|
WHERE type IN (
|
|
'UserV1',
|
|
'AssetV1',
|
|
'PartnerAssetV1',
|
|
'PartnerAssetBackfillV1',
|
|
'AlbumAssetV1',
|
|
'AlbumAssetBackfillV1'
|
|
)`.execute(db);
|
|
}
|
|
|
|
export async function down(db: Kysely<any>): Promise<void> {
|
|
await sql`DELETE FROM session_sync_checkpoint
|
|
WHERE type IN (
|
|
'UserV1',
|
|
'AssetV1',
|
|
'PartnerAssetV1',
|
|
'PartnerAssetBackfillV1',
|
|
'AlbumAssetV1',
|
|
'AlbumAssetBackfillV1'
|
|
)`.execute(db);
|
|
}
|