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'); + }); + } +}