mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 05:14:30 -04: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()
|
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) {
|
Schema::table('backups', function (Blueprint $table) {
|
||||||
$table->string('disk')->nullable();
|
$table->string('disk')->nullable();
|
||||||
$table->dropColumn('html_backup');
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user