mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-28 20:11:06 +00:00
Fix skip class used in migrations
This commit is contained in:
parent
dc4347b2a3
commit
ce286d7f7b
4 changed files with 8 additions and 8 deletions
|
@ -2,11 +2,11 @@
|
||||||
|
|
||||||
namespace Application\Migrations;
|
namespace Application\Migrations;
|
||||||
|
|
||||||
use Doctrine\DBAL\Migrations\SkipMigrationException;
|
|
||||||
use Doctrine\DBAL\Platforms\MySQLPlatform;
|
use Doctrine\DBAL\Platforms\MySQLPlatform;
|
||||||
use Doctrine\DBAL\Platforms\PostgreSQLPlatform;
|
use Doctrine\DBAL\Platforms\PostgreSQLPlatform;
|
||||||
use Doctrine\DBAL\Platforms\SqlitePlatform;
|
use Doctrine\DBAL\Platforms\SqlitePlatform;
|
||||||
use Doctrine\DBAL\Schema\Schema;
|
use Doctrine\DBAL\Schema\Schema;
|
||||||
|
use Doctrine\Migrations\Exception\SkipMigration;
|
||||||
use Wallabag\Doctrine\WallabagMigration;
|
use Wallabag\Doctrine\WallabagMigration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -102,6 +102,6 @@ class Version20161001072726 extends WallabagMigration
|
||||||
|
|
||||||
public function down(Schema $schema): void
|
public function down(Schema $schema): void
|
||||||
{
|
{
|
||||||
throw new SkipMigrationException('Too complex ...');
|
throw new SkipMigration('Too complex ...');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,11 +2,11 @@
|
||||||
|
|
||||||
namespace Application\Migrations;
|
namespace Application\Migrations;
|
||||||
|
|
||||||
use Doctrine\DBAL\Migrations\SkipMigrationException;
|
|
||||||
use Doctrine\DBAL\Platforms\MySQLPlatform;
|
use Doctrine\DBAL\Platforms\MySQLPlatform;
|
||||||
use Doctrine\DBAL\Platforms\PostgreSQLPlatform;
|
use Doctrine\DBAL\Platforms\PostgreSQLPlatform;
|
||||||
use Doctrine\DBAL\Platforms\SqlitePlatform;
|
use Doctrine\DBAL\Platforms\SqlitePlatform;
|
||||||
use Doctrine\DBAL\Schema\Schema;
|
use Doctrine\DBAL\Schema\Schema;
|
||||||
|
use Doctrine\Migrations\Exception\SkipMigration;
|
||||||
use Wallabag\Doctrine\WallabagMigration;
|
use Wallabag\Doctrine\WallabagMigration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -75,7 +75,7 @@ EOD
|
||||||
|
|
||||||
switch (true) {
|
switch (true) {
|
||||||
case $platform instanceof SqlitePlatform:
|
case $platform instanceof SqlitePlatform:
|
||||||
throw new SkipMigrationException('Too complex ...');
|
throw new SkipMigration('Too complex ...');
|
||||||
break;
|
break;
|
||||||
case $platform instanceof MySQLPlatform:
|
case $platform instanceof MySQLPlatform:
|
||||||
$this->addSql('ALTER TABLE ' . $tableName . ' MODIFY quote VARCHAR(255) NOT NULL');
|
$this->addSql('ALTER TABLE ' . $tableName . ' MODIFY quote VARCHAR(255) NOT NULL');
|
||||||
|
|
|
@ -2,11 +2,11 @@
|
||||||
|
|
||||||
namespace Application\Migrations;
|
namespace Application\Migrations;
|
||||||
|
|
||||||
use Doctrine\DBAL\Migrations\SkipMigrationException;
|
|
||||||
use Doctrine\DBAL\Platforms\MySQLPlatform;
|
use Doctrine\DBAL\Platforms\MySQLPlatform;
|
||||||
use Doctrine\DBAL\Platforms\PostgreSQLPlatform;
|
use Doctrine\DBAL\Platforms\PostgreSQLPlatform;
|
||||||
use Doctrine\DBAL\Platforms\SqlitePlatform;
|
use Doctrine\DBAL\Platforms\SqlitePlatform;
|
||||||
use Doctrine\DBAL\Schema\Schema;
|
use Doctrine\DBAL\Schema\Schema;
|
||||||
|
use Doctrine\Migrations\Exception\SkipMigration;
|
||||||
use Wallabag\Doctrine\WallabagMigration;
|
use Wallabag\Doctrine\WallabagMigration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -98,6 +98,6 @@ final class Version20190510141130 extends WallabagMigration
|
||||||
|
|
||||||
public function down(Schema $schema): void
|
public function down(Schema $schema): void
|
||||||
{
|
{
|
||||||
throw new SkipMigrationException('Too complex ...');
|
throw new SkipMigration('Too complex ...');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
namespace Application\Migrations;
|
namespace Application\Migrations;
|
||||||
|
|
||||||
use Doctrine\DBAL\Migrations\SkipMigrationException;
|
|
||||||
use Doctrine\DBAL\Schema\Schema;
|
use Doctrine\DBAL\Schema\Schema;
|
||||||
|
use Doctrine\Migrations\Exception\SkipMigration;
|
||||||
use Wallabag\Doctrine\WallabagMigration;
|
use Wallabag\Doctrine\WallabagMigration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -18,6 +18,6 @@ final class Version20200414120227 extends WallabagMigration
|
||||||
|
|
||||||
public function down(Schema $schema): void
|
public function down(Schema $schema): void
|
||||||
{
|
{
|
||||||
throw new SkipMigrationException('Not possible ... ');
|
throw new SkipMigration('Not possible ... ');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue