set default charset and collation into db migrations

This commit is contained in:
Peter Papp
2021-07-23 17:41:42 +02:00
parent 7b65d868c4
commit 5c848f75a6
20 changed files with 43 additions and 0 deletions

View File

@@ -16,6 +16,8 @@ class CreateSettingsTable extends Migration
Schema::create('settings', function (Blueprint $table) {
$table->string('name')->unique()->primary()->index();
$table->longText('value')->nullable();
$table->charset = 'utf8mb4';
$table->collation = 'utf8mb4_unicode_ci';
});
}