From 1d1646f0e2b6cfe34b83a967b52139a414a099e4 Mon Sep 17 00:00:00 2001 From: Gigamick Date: Tue, 5 Jul 2022 22:28:52 +0100 Subject: [PATCH] added expiry date --- .../2022_07_05_211328_add_expiry_to_note.php | 32 +++++++++++++++++++ .../2022_07_05_211418_add_expiry_to_notes.php | 32 +++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 database/migrations/2022_07_05_211328_add_expiry_to_note.php create mode 100644 database/migrations/2022_07_05_211418_add_expiry_to_notes.php diff --git a/database/migrations/2022_07_05_211328_add_expiry_to_note.php b/database/migrations/2022_07_05_211328_add_expiry_to_note.php new file mode 100644 index 0000000..edf2699 --- /dev/null +++ b/database/migrations/2022_07_05_211328_add_expiry_to_note.php @@ -0,0 +1,32 @@ +timestamp('expiry_date'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('notes', function (Blueprint $table) { + $table->dropColumn('expiry_date'); + }); + } +}