From c69fbea37651c43e7cb6b76292207c06fd557140 Mon Sep 17 00:00:00 2001 From: Leonard Smith Date: Sat, 1 May 2021 16:38:20 -0500 Subject: [PATCH] Add a subs boolen field to the words table --- ...01_185503_add_sub_field_to_words_table.php | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 database/migrations/2021_05_01_185503_add_sub_field_to_words_table.php diff --git a/database/migrations/2021_05_01_185503_add_sub_field_to_words_table.php b/database/migrations/2021_05_01_185503_add_sub_field_to_words_table.php new file mode 100644 index 0000000..fbf84f2 --- /dev/null +++ b/database/migrations/2021_05_01_185503_add_sub_field_to_words_table.php @@ -0,0 +1,32 @@ +boolean('sub')->default(false)->after('phrase_id'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('words', function (Blueprint $table) { + $table->dropColumn('sub'); + }); + } +}