summaryrefslogtreecommitdiffstats
path: root/php-doctrine-migrations-rpm.patch
diff options
context:
space:
mode:
Diffstat (limited to 'php-doctrine-migrations-rpm.patch')
-rw-r--r--php-doctrine-migrations-rpm.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/php-doctrine-migrations-rpm.patch b/php-doctrine-migrations-rpm.patch
new file mode 100644
index 0000000..69be9f8
--- /dev/null
+++ b/php-doctrine-migrations-rpm.patch
@@ -0,0 +1,40 @@
+diff -up ./lib/Doctrine/Migrations/Tools/Console/ConsoleRunner.php.rpm ./lib/Doctrine/Migrations/Tools/Console/ConsoleRunner.php
+--- ./lib/Doctrine/Migrations/Tools/Console/ConsoleRunner.php.rpm 2019-03-27 09:58:41.000000000 +0100
++++ ./lib/Doctrine/Migrations/Tools/Console/ConsoleRunner.php 2019-03-27 10:19:22.365477263 +0100
+@@ -15,7 +15,6 @@ use Doctrine\Migrations\Tools\Console\Co
+ use Doctrine\Migrations\Tools\Console\Command\StatusCommand;
+ use Doctrine\Migrations\Tools\Console\Command\UpToDateCommand;
+ use Doctrine\Migrations\Tools\Console\Command\VersionCommand;
+-use PackageVersions\Versions;
+ use Symfony\Component\Console\Application;
+ use Symfony\Component\Console\Helper\HelperSet;
+
+@@ -38,7 +37,7 @@ class ConsoleRunner
+ /** @param AbstractCommand[] $commands */
+ public static function createApplication(HelperSet $helperSet, array $commands = []) : Application
+ {
+- $cli = new Application('Doctrine Migrations', Versions::getVersion('doctrine/migrations'));
++ $cli = new Application('Doctrine Migrations', '2.0.0');
+ $cli->setCatchExceptions(true);
+ $cli->setHelperSet($helperSet);
+ self::addCommands($cli);
+diff -up ./tests/Doctrine/Migrations/Tests/Functional/CliTest.php.rpm ./tests/Doctrine/Migrations/Tests/Functional/CliTest.php
+--- ./tests/Doctrine/Migrations/Tests/Functional/CliTest.php.rpm 2019-03-27 10:20:22.799818585 +0100
++++ ./tests/Doctrine/Migrations/Tests/Functional/CliTest.php 2019-03-27 10:20:48.070961326 +0100
+@@ -17,7 +17,6 @@ use Doctrine\Migrations\Tools\Console\Co
+ use Doctrine\ORM\EntityManager;
+ use Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper;
+ use Doctrine\ORM\Tools\Setup as OrmSetup;
+-use PackageVersions\Versions;
+ use ReflectionClass;
+ use RuntimeException;
+ use Symfony\Component\Console\Application;
+@@ -227,7 +226,7 @@ class CliTest extends MigrationTestCase
+ );
+
+ $this->conn = $this->getSqliteConnection();
+- $this->application = new Application('Doctrine Migrations Test', Versions::getVersion('doctrine/migrations'));
++ $this->application = new Application('Doctrine Migrations Test', '@VERSION@');
+ $this->application->setCatchExceptions(false);
+ $this->application->setAutoExit(false);
+ $this->application->getHelperSet()->set(