Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

210
Visualizações
Django-Memsql Initial Migration Error

I am getting the following error on my initial migration with django 1.10 with mysql backend connected to a 3 node MemSQL cluster.

django.db.utils.OperationalError: (1895, "The unique key named: 'django_content_type_app_label_76bd3d3b_uniq' must contain al l columns specified in the primary key when no shard key is declared")

I believe that this is the issue: MemSQL - Surrogate key as Primary and different unique keys at the same time in table creation

Any workaround/solution will be much appreciated.

Cheers

about 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Yes, your running into the same issue you linked to. MemSQL has limited support for unique keys that aren't the shard key (they are expensive for a distributed database to maintain).

Outside of changing django to make the table with the unique keys a REFERENCE table I don't think there is a good work around.

about 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda