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
This page is intended to list best practices when developing for this plugin. Feel free to add your own pitfalls as well!
Database
Foreign keys should always be named explicitly
Ease up changing them later.
If not explicitly named, MySQL / MariaDB will assign auto generated names, which end with _1, _2, etc. Sometimes these get inconsistent among installations, because of changes / repairing in the DB, rerunning failed migrations, etc. Explicitly naming foreign keys and adressing them by this name prevents all this.