From 91592aa48e439bbbba726d2b39792fbab13b18b1 Mon Sep 17 00:00:00 2001 From: shenlong <139912620+shenlong-tanwen@users.noreply.github.com> Date: Fri, 16 Jan 2026 04:36:29 +0530 Subject: [PATCH] fix(mobile): drop unique constraint on cloud_id (#25291) fix: drop unique constraint on cloud_id Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> --- .../drift_schemas/main/drift_schema_v16.json | Bin 43426 -> 43334 bytes .../remote_asset_cloud_id.entity.dart | 2 +- .../remote_asset_cloud_id.entity.drift.dart | Bin 28707 -> 28634 bytes .../repositories/db.repository.steps.dart | Bin 203344 -> 203269 bytes .../test/drift/main/generated/schema_v16.dart | Bin 270443 -> 270373 bytes 5 files changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/drift_schemas/main/drift_schema_v16.json b/mobile/drift_schemas/main/drift_schema_v16.json index 8e716ada0d0e7750fa79c606a7c50fd2db8eff3a..417a3a0f20528428a331272dc35919ba7bd548b5 100644 GIT binary patch delta 26 kcmV+#0OkLp(*nlQ0 text().references(RemoteAssetEntity, #id, onDelete: KeyAction.cascade)(); - TextColumn get cloudId => text().unique().nullable()(); + TextColumn get cloudId => text().nullable()(); DateTimeColumn get createdAt => dateTime().nullable()(); diff --git a/mobile/lib/infrastructure/entities/remote_asset_cloud_id.entity.drift.dart b/mobile/lib/infrastructure/entities/remote_asset_cloud_id.entity.drift.dart index f3c416ad3abc3e7e25d69eef63c23528f9ad0799..8b15fb8f475eb905d9db6c2f964d69823937ced5 100644 GIT binary patch delta 18 acmZ4dfbrIS#tjm7lf#|VH+R_0HUt1sj0fES delta 34 qcmcb0pKD$#U?x4<=Sq~%q%Dl0Hs6;=Kufz delta 45 zcmZqO!gFB@PeTi13)2?nD@>CM0&LjTL;XAhLtQ63s>w}uxXU&9e<#QGKTOP=;sAv% B5KjOA diff --git a/mobile/test/drift/main/generated/schema_v16.dart b/mobile/test/drift/main/generated/schema_v16.dart index ce02845008ca0f1beba23233a59b1cdda139702a..0690288d7fd2961debe145c64652ce5ce9f61ac4 100644 GIT binary patch delta 51 zcmV-30L=gEz!0Ut5P*aMv;u9fmtO}0Dwl8#0Zy0Du>u~K5IX}glYllGlVB_gho7(l Jx1X>B%x?jU6N>-< delta 59 zcmV-B0L1^Lz!2-e5P*aMv;u9flduK}mrxM_Fb5}9PDxQ!MVCMg0e+LfxE+_E;sRH* RPQGyhhsv@7x5}~uTWzrz7rFod