mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-01 06:04:35 -04:00
Catch for migrations that has already run
This commit is contained in:
parent
96766d33b8
commit
299556dd5e
@ -11,11 +11,13 @@ return new class extends Migration
|
|||||||
*/
|
*/
|
||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
|
|
||||||
Schema::table('users', function (Blueprint $table) {
|
if(!in_array('referral_meta', \Illuminate\Support\Facades\Schema::getColumnListing('users')))
|
||||||
$table->mediumText('referral_meta')->nullable();
|
{
|
||||||
});
|
Schema::table('users', function (Blueprint $table) {
|
||||||
|
$table->mediumText('referral_meta')->nullable();
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user