Skip to content

Add database merge support when newer data is detected on startup #298

@alexeyhramov123

Description

@alexeyhramov123

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions