summaryrefslogtreecommitdiffstats
path: root/phinx-version.patch
diff options
context:
space:
mode:
Diffstat (limited to 'phinx-version.patch')
-rw-r--r--phinx-version.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/phinx-version.patch b/phinx-version.patch
new file mode 100644
index 0000000..ea1290d
--- /dev/null
+++ b/phinx-version.patch
@@ -0,0 +1,13 @@
+diff -up src/Phinx/Console/PhinxApplication.php.rpm src/Phinx/Console/PhinxApplication.php
+--- src/Phinx/Console/PhinxApplication.php.rpm 2017-12-23 17:33:14.486694897 +0100
++++ src/Phinx/Console/PhinxApplication.php 2017-12-23 17:33:39.408810505 +0100
+@@ -49,8 +49,7 @@ class PhinxApplication extends Applicati
+ */
+ public function __construct()
+ {
+- $composerConfig = json_decode(file_get_contents(__DIR__ . '/../../../composer.json'));
+- $version = $composerConfig->version;
++ $version = '@VERSION@';
+
+ parent::__construct('Phinx by CakePHP - https://phinx.org.', $version);
+