Skip to content

Database cleanup #341

Description

@floss4good

While working on pull request #340 I noticed that:

  1. The ocsms_sendmessage_queue tables is not used.
    Based on the table name and the description of the Android client:

    Sending SMS from a Nextcloud instance will be coming in a future release.

    I can assume that this table was added in advance, but the functionality for sending SMS was not implemented until now.
    Under these circumstances I think it would be better to remove the table for now in order to avoid creating useless migrations.

  2. The ocsms_user_datas table is only used within the ConversationStateMapper::migrate() method that is only called by FixConversationReadStates repair step class.
    Checking the implementation of this method and the git history I’ve found out that the table was used before ocsms_conversation_read_states table was added back in November 2016 (see commit 26df3a5) and the repair step is actually migrating the data to the new table.
    Again, I think it is now safe enough to drop this table, the repair step and related legacy code.

At the time of writing the most recent Phone Sync (ocsms) version is 2.2.0 (released on Dec 16, 2020) and the above remarks are also valid for current master codebase.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions