Add a migration to add ulb sort column to words table

This commit is contained in:
Leonard Smith 2021-05-01 16:34:19 -05:00
parent 7494faaa8c
commit a528ce9f96
1 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddExtraSortColumnsToWordsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('words', function (Blueprint $table) {
$table->bigInteger('ulb_sort')->nullable()->after('ognt_sort');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('words', function (Blueprint $table) {
$table->dropColumn('ulb_sort');
});
}
}