change language id to uuid

This commit is contained in:
Milos Holba
2021-02-09 16:22:06 +01:00
parent a8457cf261
commit 29fce75d35
7 changed files with 121 additions and 20 deletions

View File

@@ -14,7 +14,7 @@ class CreateLanguagesTable extends Migration
public function up()
{
Schema::create('languages', function (Blueprint $table) {
$table->bigIncrements('id');
$table->uuid('id')->primary();
$table->string('name');
$table->string('locale')->unique();
});