en_btr_backend/database/migrations/2021_05_01_153604_add_verse...

33 lines
656 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddVerseCodeToWordsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('words', function (Blueprint $table) {
$table->string('verse_code')->after('id');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('words', function (Blueprint $table) {
$table->dropColumn('verse_code');
});
}
}