Unable to create or change a table without a primary key - Laravel DigitalOcean Managed Database
问题 I've just deployed my app to DigitalOcean using (Managed Database) and I'm getting the following error when calling php artisan migrate SQLSTATE[HY000]: General error: 3750 Unable to create or change a table without a primary key, when the system variable 'sql_require_primary_key' is set. Add a primary key to the table or unset this variable to avoid this message. Note that tables without a primary key can cause performance problems in row-based replication, so please consult your DBA before