Skip to content

Commit

Permalink
#8929 Dropped not needed columns
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasraoni committed May 18, 2023
1 parent ee54969 commit c303da4
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
namespace PKP\migration\upgrade\v3_4_0;

use Illuminate\Database\MySqlConnection;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
use PKP\install\DowngradeNotSupportedException;
Expand Down Expand Up @@ -90,6 +91,9 @@ public function up(): void
AND best.user_id IS NOT NULL"
);
}

// Drop the deprecated fields
Schema::table('user_settings', fn (Blueprint $table) => $table->dropColumn('assoc_id', 'assoc_type'));
}

/**
Expand Down

0 comments on commit c303da4

Please sign in to comment.