mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -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
|
||||
{
|
||||
|
||||
Schema::table('users', function (Blueprint $table) {
|
||||
$table->mediumText('referral_meta')->nullable();
|
||||
});
|
||||
|
||||
|
||||
if(!in_array('referral_meta', \Illuminate\Support\Facades\Schema::getColumnListing('users')))
|
||||
{
|
||||
Schema::table('users', function (Blueprint $table) {
|
||||
$table->mediumText('referral_meta')->nullable();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user