assada / laravel-achievements

Laravel 6+ User Achievements system.
https://assada.github.io/laravel-achievements/
MIT License
65 stars 28 forks source link

Create Primary Keys Properly #12

Closed Ekion-1 closed 3 years ago

Ekion-1 commented 3 years ago

This pull request updates the 0000_00_00_000000_create_achievements_tables.php migration to create the ID using the $table->id() method.

This prevents the Unable to create or change a table without a primary key error shown on some cloud database providers that enforce sql_require_primary_key such as DigitalOcean and follows Laravel best practice.

Ekion-1 commented 3 years ago

Nevemind - this still doesn't work.