Description:
The app currently replaces the existing database on startup, even when the .db file in the log directory contains newer data.
Context:
When using Daily You across multiple devices with sync enabled, concurrent or sequential edits can occur. In this scenario, simply choosing one database version over another risks data loss.
Proposed Improvement:
If newer data is detected in the existing .db file during startup, the app should support merging changes instead of fully replacing the database. This could help preserve entries from multiple devices and make sync behavior more robust.
Expected Outcome:
Reduced risk of data loss when syncing across devices, and improved handling of concurrent or offline edits.