Compare commits

..

2 Commits

Author SHA1 Message Date
ffb371438a Merge pull request 'fixed api issue' (#22) from mohan into master
Reviewed-on: #22
2026-06-24 16:39:39 +00:00
pavithrak27
dcbc95ba4b fixed api issue 2026-06-24 22:06:40 +05:30

View File

@ -12,7 +12,9 @@
public function up(): void public function up(): void
{ {
Schema::table('sponsors', function (Blueprint $table) { Schema::table('sponsors', function (Blueprint $table) {
$table->json('license_data')->nullable()->after('license_number'); if (!Schema::hasColumn('sponsors', 'license_data')) {
$table->json('license_data')->nullable()->after('license_number');
}
}); });
} }
@ -22,7 +24,9 @@ public function up(): void
public function down(): void public function down(): void
{ {
Schema::table('sponsors', function (Blueprint $table) { Schema::table('sponsors', function (Blueprint $table) {
$table->dropColumn('license_data'); if (Schema::hasColumn('sponsors', 'license_data')) {
$table->dropColumn('license_data');
}
}); });
} }
}; };