diff --git a/database/migrations/2022_03_03_225655_add_notes_to_accessories.php b/database/migrations/2022_03_03_225655_add_notes_to_accessories.php new file mode 100644 index 0000000000..d6f8fac6f3 --- /dev/null +++ b/database/migrations/2022_03_03_225655_add_notes_to_accessories.php @@ -0,0 +1,34 @@ +text("notes")->nullable()->default(null); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('accessories', function (Blueprint $table) { + if (Schema::hasColumn('accessories', 'notes')) { + $table->dropColumn('notes'); + } + }); + } +} diff --git a/database/migrations/2022_03_03_225754_add_notes_to_components.php b/database/migrations/2022_03_03_225754_add_notes_to_components.php new file mode 100644 index 0000000000..2e09930974 --- /dev/null +++ b/database/migrations/2022_03_03_225754_add_notes_to_components.php @@ -0,0 +1,34 @@ +text("notes")->nullable()->default(null); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('components', function (Blueprint $table) { + if (Schema::hasColumn('components', 'notes')) { + $table->dropColumn('notes'); + } + }); + } +} diff --git a/database/migrations/2022_03_03_225824_add_notes_to_consumables.php b/database/migrations/2022_03_03_225824_add_notes_to_consumables.php new file mode 100644 index 0000000000..e024d65144 --- /dev/null +++ b/database/migrations/2022_03_03_225824_add_notes_to_consumables.php @@ -0,0 +1,34 @@ +text("notes")->nullable()->default(null); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('consumables', function (Blueprint $table) { + if (Schema::hasColumn('consumables', 'notes')) { + $table->dropColumn('notes'); + } + }); + } +}