Add a migration to add ulb sort column to words table
This commit is contained in:
parent
7494faaa8c
commit
a528ce9f96
|
@ -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');
|
||||
});
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue