1
0
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:
David Bomba 2022-11-07 10:37:32 +11:00
parent f37715d751
commit c5e2dba528

View File

@ -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');
});
}