forked from WycliffeAssociates/en_btr_backend
Add migration for lexical_entry table
This commit is contained in:
parent
618eff8734
commit
395ae03a21
|
@ -20,7 +20,7 @@ class CreateWordsTable extends Migration
|
|||
$table->string('lemma');
|
||||
$table->string('morph');
|
||||
$table->bigInteger('ognt_sort');
|
||||
$table->string('strongs_number');
|
||||
$table->string('strongs_number')->nullable();
|
||||
$table->string('verse_id')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
|
|
|
@ -0,0 +1,33 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateLexicalEntryTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('lexical_entries', function (Blueprint $table) {
|
||||
$table->string('id')->primary();
|
||||
$table->string('lemma');
|
||||
$table->text('commentary');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('lexical_entry');
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue