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();
});

View File

@@ -15,7 +15,7 @@ class CreateLanguageStrings extends Migration
{
Schema::create('language_strings', function (Blueprint $table) {
$table->bigIncrements('id');
$table->bigInteger('language_id');
$table->uuid('language_id');
$table->string('key');
$table->longText('value');
$table->string('lang');