A free open source IT asset/license management system
Added migration
snipeb89b636474a3
diff --git a/database/migrations/2025_08_06_192954_add_image_to_maintenances.php b/database/migrations/2025_08_06_192954_add_image_to_maintenances.phpnew file mode 100644index 0000000000..ab1bb424b4--- /dev/null+++ b/database/migrations/2025_08_06_192954_add_image_to_maintenances.php@@ -0,0 +1,30 @@+<?php++use Illuminate\Database\Migrations\Migration;+use Illuminate\Database\Schema\Blueprint;+use Illuminate\Support\Facades\Schema;++return new class extends Migration+{+ /**+ * Run the migrations.+ */+ public function up(): void+ {+ Schema::table('asset_maintenances', function (Blueprint $table) {+ if (!Schema::hasColumn('asset_maintenances', 'image')) {+ $table->text('image')->after('notes')->nullable()->default(null);+ }+ });+ }++ /**+ * Reverse the migrations.+ */+ public function down(): void+ {+ Schema::table('asset_maintenances', function (Blueprint $table) {+ $table->dropColumn('image');+ });+ }+};