mirror of
https://github.com/immich-app/immich.git
synced 2026-02-13 12:27:56 +03:00
reset asset sync entity on mobile and server
This commit is contained in:
@@ -92,7 +92,12 @@ Future<void> migrateDatabaseIfNeeded(Isar db, Drift drift) async {
|
||||
}
|
||||
|
||||
if (version < 21) {
|
||||
await _addSyncEntityReset([SyncEntityType.assetExifV1]);
|
||||
await _addSyncEntityReset([
|
||||
SyncEntityType.assetV1,
|
||||
SyncEntityType.partnerAssetV1,
|
||||
SyncEntityType.albumAssetCreateV1,
|
||||
SyncEntityType.albumAssetUpdateV1,
|
||||
]);
|
||||
}
|
||||
|
||||
if (targetVersion >= 12) {
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
import { Kysely, sql } from 'kysely';
|
||||
|
||||
export async function up(db: Kysely<any>): Promise<void> {
|
||||
await sql`DELETE FROM session_sync_checkpoint WHERE type IN ('AssetV1', 'PartnerAssetV1', 'AlbumAssetCreateV1', 'AlbumAssetUpdateV1')`.execute(db);
|
||||
}
|
||||
|
||||
export async function down(): Promise<void> {}
|
||||
Reference in New Issue
Block a user