From 10834cf6388a1e6e7a8961430062f85ae9c1a4db Mon Sep 17 00:00:00 2001 From: snipe Date: Sat, 22 Feb 2025 18:11:35 +0000 Subject: [PATCH] Added migration Signed-off-by: snipe --- ...8_add_checkin_checkout_to_customfields.php | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 database/migrations/2025_02_22_144518_add_checkin_checkout_to_customfields.php diff --git a/database/migrations/2025_02_22_144518_add_checkin_checkout_to_customfields.php b/database/migrations/2025_02_22_144518_add_checkin_checkout_to_customfields.php new file mode 100644 index 000000000..28aceee43 --- /dev/null +++ b/database/migrations/2025_02_22_144518_add_checkin_checkout_to_customfields.php @@ -0,0 +1,30 @@ +boolean('display_checkin')->default(0); + $table->boolean('display_checkout')->default(0); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('custom_fields', function (Blueprint $table) { + $table->dropColumn('display_checkin'); + $table->dropColumn('display_checkout'); + }); + } +};