2024-03-18 15:29:59 -07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
|
|
|
|
class UpdateLegacyLocations extends Migration
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function up()
|
|
|
|
{
|
|
|
|
//
|
|
|
|
Schema::table('users', function (Blueprint $table) {
|
|
|
|
//
|
2024-03-19 12:51:05 -07:00
|
|
|
$table->string('locale', 10)->nullable()->default('en-US')->change();
|
2024-03-18 15:29:59 -07:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function down()
|
|
|
|
{
|
|
|
|
//
|
|
|
|
Schema::table('users', function (Blueprint $table) {
|
|
|
|
//
|
|
|
|
$table->string('locale', 10)->nullable()->default(config('app.locale'))->change();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|