From 00e525a7645f550a61898c3c2165983284eb627c Mon Sep 17 00:00:00 2001 From: IceToast Date: Thu, 16 Jun 2022 11:59:17 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20=E2=9C=A8=20Added=20Migration=20->=20la?= =?UTF-8?q?st=20billed=20field=20to=20servers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...95818_add_last_billed_field_to_servers.php | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 database/migrations/2022_06_16_095818_add_last_billed_field_to_servers.php diff --git a/database/migrations/2022_06_16_095818_add_last_billed_field_to_servers.php b/database/migrations/2022_06_16_095818_add_last_billed_field_to_servers.php new file mode 100644 index 00000000..6b05f3a5 --- /dev/null +++ b/database/migrations/2022_06_16_095818_add_last_billed_field_to_servers.php @@ -0,0 +1,33 @@ +dateTime('last_billed')->default(DB::raw('CURRENT_TIMESTAMP'))->nullable(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('servers', function (Blueprint $table) { + $table->dropColumn('last_billed'); + }); + } +}