akaunting/database/migrations/2020_01_01_000000_add_locale_column.php

31 lines
556 B
PHP
Raw Normal View History

2017-09-14 22:21:00 +03:00
<?php
use Illuminate\Database\Migrations\Migration;
class AddLocaleColumn extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('users', function ($table) {
$table->string('locale')->default(config('app.locale'));
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('users', function ($table) {
$table->dropColumn('locale');
});
}
}