fixed api issue
This commit is contained in:
parent
5c4c453ad0
commit
dcbc95ba4b
@ -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');
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user