mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Fixes for dropping columns if they do not exist yet
This commit is contained in:
parent
f37715d751
commit
c5e2dba528
@ -13,9 +13,17 @@ return new class extends Migration
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
|
||||
if (Schema::hasColumn('backups', 'html_backup'))
|
||||
{
|
||||
Schema::table('backups', function (Blueprint $table)
|
||||
{
|
||||
$table->dropColumn('html_backup');
|
||||
});
|
||||
}
|
||||
|
||||
Schema::table('backups', function (Blueprint $table) {
|
||||
$table->string('disk')->nullable();
|
||||
$table->dropColumn('html_backup');
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user