Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

translator:load throws db integrity error #165

Closed
haydar opened this issue Dec 12, 2019 · 1 comment
Closed

translator:load throws db integrity error #165

haydar opened this issue Dec 12, 2019 · 1 comment

Comments

@haydar
Copy link

haydar commented Dec 12, 2019

Hi, I migrated all migration of package, I have language file in lang folder and I added my langs code to available_locales array but load command throws this error;

Doctrine\DBAL\Driver\PDOException::("SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (esnan.translator_translations, CONSTRAINT translator_translations_locale_foreign FOREIGN KEY (locale) REFERENCES translator_languages (locale))")

@haydar
Copy link
Author

haydar commented Dec 12, 2019

I checked ''translator_languages' table. I didnt see second lang record. I inserted and problem fixed

@haydar haydar closed this as completed Dec 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant