Add migration for words table phraseid
This commit is contained in:
parent
c3b95f178c
commit
7494faaa8c
|
@ -0,0 +1,32 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class AddPhraseidToWordsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('words', function (Blueprint $table) {
|
||||
$table->integer('phrase_id')->nullable()->after('strongs_number');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('words', function (Blueprint $table) {
|
||||
$table->dropColumn('phrase_id');
|
||||
});
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue