You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using this plugin for an existing website that we are in the process of migrating to DigitalOcean. We plan on using their Managed Database service. While importing the database export, we discovered an issue that prevented the craft_enupaltranslate_message table from being created. This table does not contain a primary key which causes the import to fail if the MySQL variable sql_require_primary_key is set to true. DigitalOcean recently changed their default variables and this is now required.
I have worked around this by adding a composite primary key for id and language. In order to do this, I had remove the ability for language to be null. This appears to be working okay right now but I am unsure of the ramifications of this. It was at least able to allow me to continue with the setup.
Steps to reproduce
Export database from Craft
Attempt to import database into a MySQL environment where the sql_require_primary_key variable is set to true.
Unfortunately, that flag isn't possible on DigitalOcean. They require a primary key for their managed database service and will fail to import a table without it (regardless of the flag).
Description
We are using this plugin for an existing website that we are in the process of migrating to DigitalOcean. We plan on using their Managed Database service. While importing the database export, we discovered an issue that prevented the
craft_enupaltranslate_message
table from being created. This table does not contain a primary key which causes the import to fail if the MySQL variablesql_require_primary_key
is set to true. DigitalOcean recently changed their default variables and this is now required.I have worked around this by adding a composite primary key for
id
andlanguage
. In order to do this, I had remove the ability for language to be null. This appears to be working okay right now but I am unsure of the ramifications of this. It was at least able to allow me to continue with the setup.Steps to reproduce
sql_require_primary_key
variable is set to true.Additional info
Refs
The text was updated successfully, but these errors were encountered: