summaryrefslogtreecommitdiffstats
path: root/php-doctrine-migrations-rpm.patch
blob: 69be9f8d5750212f733c5cdcb3e7b030b129aa02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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(