Add migration for lexical_entry table

This commit is contained in:
Leonard Smith 2020-10-06 20:26:13 -05:00
parent 618eff8734
commit 395ae03a21
2 changed files with 34 additions and 1 deletions

View File

@ -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();
});

View File

@ -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');
}
}