Skip to content

Commit

Permalink
Add database migration for removing OAuth1 tables
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisameling committed Jun 9, 2021
1 parent f9c2de0 commit c59d4a9
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions app/migrations/Version20210609191822.php
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');
}
}

0 comments on commit c59d4a9

Please sign in to comment.