Fix skip class used in migrations

This commit is contained in:
Yassine Guedidi 2024-03-30 01:17:41 +01:00
parent dc4347b2a3
commit ce286d7f7b
4 changed files with 8 additions and 8 deletions

View file

@ -2,11 +2,11 @@
namespace Application\Migrations;
use Doctrine\DBAL\Migrations\SkipMigrationException;
use Doctrine\DBAL\Platforms\MySQLPlatform;
use Doctrine\DBAL\Platforms\PostgreSQLPlatform;
use Doctrine\DBAL\Platforms\SqlitePlatform;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\Exception\SkipMigration;
use Wallabag\Doctrine\WallabagMigration;
/**
@ -102,6 +102,6 @@ class Version20161001072726 extends WallabagMigration
public function down(Schema $schema): void
{
throw new SkipMigrationException('Too complex ...');
throw new SkipMigration('Too complex ...');
}
}

View file

@ -2,11 +2,11 @@
namespace Application\Migrations;
use Doctrine\DBAL\Migrations\SkipMigrationException;
use Doctrine\DBAL\Platforms\MySQLPlatform;
use Doctrine\DBAL\Platforms\PostgreSQLPlatform;
use Doctrine\DBAL\Platforms\SqlitePlatform;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\Exception\SkipMigration;
use Wallabag\Doctrine\WallabagMigration;
/**
@ -75,7 +75,7 @@ EOD
switch (true) {
case $platform instanceof SqlitePlatform:
throw new SkipMigrationException('Too complex ...');
throw new SkipMigration('Too complex ...');
break;
case $platform instanceof MySQLPlatform:
$this->addSql('ALTER TABLE ' . $tableName . ' MODIFY quote VARCHAR(255) NOT NULL');

View file

@ -2,11 +2,11 @@
namespace Application\Migrations;
use Doctrine\DBAL\Migrations\SkipMigrationException;
use Doctrine\DBAL\Platforms\MySQLPlatform;
use Doctrine\DBAL\Platforms\PostgreSQLPlatform;
use Doctrine\DBAL\Platforms\SqlitePlatform;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\Exception\SkipMigration;
use Wallabag\Doctrine\WallabagMigration;
/**
@ -98,6 +98,6 @@ final class Version20190510141130 extends WallabagMigration
public function down(Schema $schema): void
{
throw new SkipMigrationException('Too complex ...');
throw new SkipMigration('Too complex ...');
}
}

View file

@ -2,8 +2,8 @@
namespace Application\Migrations;
use Doctrine\DBAL\Migrations\SkipMigrationException;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\Exception\SkipMigration;
use Wallabag\Doctrine\WallabagMigration;
/**
@ -18,6 +18,6 @@ final class Version20200414120227 extends WallabagMigration
public function down(Schema $schema): void
{
throw new SkipMigrationException('Not possible ... ');
throw new SkipMigration('Not possible ... ');
}
}