Skip to content

A free open source IT asset/license management system

Make the temp datetime nullable

snipe676cd66e4bc3
diff --git a/database/migrations/2023_07_13_052204_denormalized_eol_and_add_column_for_explicit_date_to_assets.php b/database/migrations/2023_07_13_052204_denormalized_eol_and_add_column_for_explicit_date_to_assets.php
index 64274e24aa..f309dad6e5 100644
--- a/database/migrations/2023_07_13_052204_denormalized_eol_and_add_column_for_explicit_date_to_assets.php
+++ b/database/migrations/2023_07_13_052204_denormalized_eol_and_add_column_for_explicit_date_to_assets.php
@@ -29,7 +29,7 @@ class DenormalizedEolAndAddColumnForExplicitDateToAssets extends Migration
// after the eol_explicit stuff is done
Schema::table('companies', function (Blueprint $table) {
if (! Schema::hasColumn('companies', 'deleted_at')) {
- $table->datetime('deleted_at')->default(false);
+ $table->datetime('deleted_at')->nullable()->default(null);
}
});