-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add database migration for removing OAuth1 tables
- Loading branch information
1 parent
f9c2de0
commit c59d4a9
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* @copyright 2021 Mautic Contributors. All rights reserved. | ||
* @author Mautic | ||
* @link https://mautic.org | ||
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html | ||
*/ | ||
|
||
namespace Mautic\Migrations; | ||
|
||
use Doctrine\DBAL\Schema\Schema; | ||
use Doctrine\Migrations\Exception\SkipMigration; | ||
use Mautic\CoreBundle\Doctrine\AbstractMauticMigration; | ||
|
||
final class Version20210609191822 extends AbstractMauticMigration | ||
{ | ||
/** | ||
* Mautic 4 removed OAuth1 support, so we drop those tables. | ||
*/ | ||
public function up(Schema $schema): void | ||
{ | ||
$schema->dropTable('oauth1_access_tokens'); | ||
$schema->dropTable('oauth1_consumers'); | ||
$schema->dropTable('oauth1_nonces'); | ||
$schema->dropTable('oauth1_request_tokens'); | ||
} | ||
} |