Fixes for dropping columns if they do not exist yet
This commit is contained in:
parent
f37715d751
commit
c5e2dba528
1 changed files with 9 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue