150 "Foreign key constraint is incorrectly formed"

Abierto
#91 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
28/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Activo
Stack tecnológico
mysql, php
Área
databases

Línea de trabajo

This is a user support report: installing or reinstalling the plugin fails with MySQL errno 150 when creating werkl_blog_category, so start from the migration that creates that table and compare its foreign-key column definition with the referenced blog table (type, length, charset must match). Reproduce against Shopware 6.7.9.0 with the affected OpenBlogware version to confirm whether the schema drifted between 5.0.1 and 5.2.1. Done means the migration creates the table without errno 150 and the plugin installs cleanly; note the report gives no version of the failing migration, so ask the reporter first.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Ich hatte das Plugin Version 5.0.1 installiert. Nachdem ich aber Probleme mit dem Erstellen von Blogbeiträgen hatte, hatte ich die Version auf 5.2.1 aktualisiert. Doch dann stellt ich fest. das meine Plugins nicht mehr zu sehen waren. Dann habe ich es deinstalliert und wollte danna uf die darunterliegende Version wieder installieren, aber ich erhalte die Fehlermeldung "Internal Server Error An exception occurred while executing a query: SQLSTATE[HY000]: General error: 1005 Can't create table K10804_shopname.werkl_blog_category (errno: 150 "Foreign key constraint is incorrectly formed"). Egal was ich nun mache, die Meldung bleibt bestehen. Ich setze Shopware 6.7.9.0 ein. Wie kann ich das Problem beheben bzw beseitigen.

Lenguaje dominante
PHP
Estrellas
44
Forks
21
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Werkstattl/OpenBlogware

Todos los issues de Werkstattl/OpenBlogware

Issues similares

Más issues de PHP

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.