Skip to content
This repository was archived by the owner on Apr 26, 2022. It is now read-only.
This repository was archived by the owner on Apr 26, 2022. It is now read-only.

Duplicate key error on switching services #222

Description

@ph448

This seems to only happen to services switching multiple times, we get:

IntegrityError at /switch_services/352/
duplicate key value violates unique constraint "apimws_ansibleconfiguration_service_id_57c01285a0290788_uniq"
DETAIL:  Key (service_id, key)=(703, backup_first_date) already exists.

This means that https://github.com/uisautomation/mws-panel/blob/0abdf8602b25527e8896f9e3ff9974d84d968e59/mws/sitesmanagement/models.py#L286-L287 fails.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions