From 395ae03a21fe26c7f12c7f96369f86c29e62bfa1 Mon Sep 17 00:00:00 2001 From: Leonard Smith Date: Tue, 6 Oct 2020 20:26:13 -0500 Subject: [PATCH] Add migration for lexical_entry table --- .../2020_10_01_231338_create_words_table.php | 2 +- ...0_07_011327_create_lexical_entry_table.php | 33 +++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 database/migrations/2020_10_07_011327_create_lexical_entry_table.php diff --git a/database/migrations/2020_10_01_231338_create_words_table.php b/database/migrations/2020_10_01_231338_create_words_table.php index 79d7c39..0df0f31 100644 --- a/database/migrations/2020_10_01_231338_create_words_table.php +++ b/database/migrations/2020_10_01_231338_create_words_table.php @@ -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(); }); diff --git a/database/migrations/2020_10_07_011327_create_lexical_entry_table.php b/database/migrations/2020_10_07_011327_create_lexical_entry_table.php new file mode 100644 index 0000000..c2e681f --- /dev/null +++ b/database/migrations/2020_10_07_011327_create_lexical_entry_table.php @@ -0,0 +1,33 @@ +string('id')->primary(); + $table->string('lemma'); + $table->text('commentary'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('lexical_entry'); + } +}