updated migrations

This commit is contained in:
denisdulici
2019-12-16 12:04:27 +03:00
parent bfa445c322
commit 1e2b5a3621
61 changed files with 130 additions and 68 deletions

View File

@ -1,6 +1,8 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddLocaleColumn extends Migration
{
@ -11,7 +13,7 @@ class AddLocaleColumn extends Migration
*/
public function up()
{
Schema::table('users', function ($table) {
Schema::table('users', function (Blueprint $table) {
$table->string('locale')->default(config('app.locale'));
});
}
@ -23,7 +25,7 @@ class AddLocaleColumn extends Migration
*/
public function down()
{
Schema::table('users', function ($table) {
Schema::table('users', function (Blueprint $table) {
$table->dropColumn('locale');
});
}