06/23 Fix Medium//Low-impact issues
This commit is contained in:
@@ -1,8 +1,17 @@
|
||||
// Models/SyncQueueEntry.swift
|
||||
// ---------------------------
|
||||
// SwiftData model for the outbox sync queue.
|
||||
// Every offline write (inspection, issue, photo) enqueues an entry here.
|
||||
// SyncManager processes entries in FIFO order when connectivity is restored.
|
||||
// LEGACY — This model is no longer used. The original design enqueued every
|
||||
// offline write here and processed in FIFO order; the current architecture uses
|
||||
// LocalInspection.syncStatus / LocalIssue.syncStatus / PendingPhoto.uploadStatus
|
||||
// directly (simpler, fewer moving parts, no double-bookkeeping).
|
||||
//
|
||||
// The model is kept registered in the SwiftData container solely to maintain
|
||||
// schema compatibility with existing installs — removing it from modelContainer
|
||||
// would trigger a migration failure on devices that already have the table.
|
||||
// A future dedicated migration (phase N) can drop the table explicitly using
|
||||
// op.execute("DROP TABLE IF EXISTS SyncQueueEntry") once it's safe to do so.
|
||||
//
|
||||
// DO NOT add new code that reads or writes this model.
|
||||
|
||||
import Foundation
|
||||
import SwiftData
|
||||
|
||||
Reference in New Issue
Block a user