mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Always set latest version after update run.
This commit is contained in:
50
app/Console/Commands/SetLatestVersion.php
Normal file
50
app/Console/Commands/SetLatestVersion.php
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace FireflyIII\Console\Commands;
|
||||||
|
|
||||||
|
use Illuminate\Console\Command;
|
||||||
|
|
||||||
|
class SetLatestVersion extends Command
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* The console command description.
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
protected $description = 'Command description';
|
||||||
|
/**
|
||||||
|
* The name and signature of the console command.
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
protected $signature = 'firefly-iii:set-latest-version {--james-is-cool}';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new command instance.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
parent::__construct();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Execute the console command.
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
public function handle()
|
||||||
|
{
|
||||||
|
if (!$this->option('james-is-cool')) {
|
||||||
|
$this->error('Am too!');
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
app('fireflyconfig')->set('db_version', config('firefly.db_version'));
|
||||||
|
app('fireflyconfig')->set('ff3_version', config('firefly.version'));
|
||||||
|
$this->line('Updated version.');
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
@@ -102,6 +102,9 @@ class InstallController extends Controller
|
|||||||
'firefly-iii:rename-meta-fields' => [],
|
'firefly-iii:rename-meta-fields' => [],
|
||||||
'firefly-iii:fix-ob-currencies' => [],
|
'firefly-iii:fix-ob-currencies' => [],
|
||||||
'firefly-iii:fix-long-descriptions' => [],
|
'firefly-iii:fix-long-descriptions' => [],
|
||||||
|
|
||||||
|
// final command to set latest version in DB
|
||||||
|
'firefly-iii:set-last-version' => ['--james-is-cool' => true],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
94
composer.lock
generated
94
composer.lock
generated
@@ -8,16 +8,16 @@
|
|||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "adldap2/adldap2",
|
"name": "adldap2/adldap2",
|
||||||
"version": "v10.1.1",
|
"version": "v10.2.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Adldap2/Adldap2.git",
|
"url": "https://github.com/Adldap2/Adldap2.git",
|
||||||
"reference": "9252328a3fb8ea7be7194fd0d956e40ce3e51149"
|
"reference": "aebcb3005552c15de6c8a04358683b810900ed65"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/Adldap2/Adldap2/zipball/9252328a3fb8ea7be7194fd0d956e40ce3e51149",
|
"url": "https://api.github.com/repos/Adldap2/Adldap2/zipball/aebcb3005552c15de6c8a04358683b810900ed65",
|
||||||
"reference": "9252328a3fb8ea7be7194fd0d956e40ce3e51149",
|
"reference": "aebcb3005552c15de6c8a04358683b810900ed65",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -63,7 +63,7 @@
|
|||||||
"ldap",
|
"ldap",
|
||||||
"windows"
|
"windows"
|
||||||
],
|
],
|
||||||
"time": "2019-09-24T13:06:16+00:00"
|
"time": "2019-11-06T14:37:17+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "adldap2/adldap2-laravel",
|
"name": "adldap2/adldap2-laravel",
|
||||||
@@ -2512,24 +2512,24 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "paragonie/constant_time_encoding",
|
"name": "paragonie/constant_time_encoding",
|
||||||
"version": "v2.2.3",
|
"version": "v2.3.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/paragonie/constant_time_encoding.git",
|
"url": "https://github.com/paragonie/constant_time_encoding.git",
|
||||||
"reference": "55af0dc01992b4d0da7f6372e2eac097bbbaffdb"
|
"reference": "47a1cedd2e4d52688eb8c96469c05ebc8fd28fa2"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/paragonie/constant_time_encoding/zipball/55af0dc01992b4d0da7f6372e2eac097bbbaffdb",
|
"url": "https://api.github.com/repos/paragonie/constant_time_encoding/zipball/47a1cedd2e4d52688eb8c96469c05ebc8fd28fa2",
|
||||||
"reference": "55af0dc01992b4d0da7f6372e2eac097bbbaffdb",
|
"reference": "47a1cedd2e4d52688eb8c96469c05ebc8fd28fa2",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^7"
|
"php": "^7|^8"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "^6|^7",
|
"phpunit/phpunit": "^6|^7",
|
||||||
"vimeo/psalm": "^1|^2"
|
"vimeo/psalm": "^1|^2|^3"
|
||||||
},
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"autoload": {
|
"autoload": {
|
||||||
@@ -2544,15 +2544,15 @@
|
|||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name": "Paragon Initiative Enterprises",
|
"name": "Paragon Initiative Enterprises",
|
||||||
"role": "Maintainer",
|
|
||||||
"email": "security@paragonie.com",
|
"email": "security@paragonie.com",
|
||||||
"homepage": "https://paragonie.com"
|
"homepage": "https://paragonie.com",
|
||||||
|
"role": "Maintainer"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Steve 'Sc00bz' Thomas",
|
"name": "Steve 'Sc00bz' Thomas",
|
||||||
"role": "Original Developer",
|
|
||||||
"email": "steve@tobtu.com",
|
"email": "steve@tobtu.com",
|
||||||
"homepage": "https://www.tobtu.com"
|
"homepage": "https://www.tobtu.com",
|
||||||
|
"role": "Original Developer"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "Constant-time Implementations of RFC 4648 Encoding (Base-64, Base-32, Base-16)",
|
"description": "Constant-time Implementations of RFC 4648 Encoding (Base-64, Base-32, Base-16)",
|
||||||
@@ -2570,7 +2570,7 @@
|
|||||||
"hex2bin",
|
"hex2bin",
|
||||||
"rfc4648"
|
"rfc4648"
|
||||||
],
|
],
|
||||||
"time": "2019-01-03T20:26:31+00:00"
|
"time": "2019-11-06T19:20:29+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "paragonie/random_compat",
|
"name": "paragonie/random_compat",
|
||||||
@@ -2619,28 +2619,28 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpoption/phpoption",
|
"name": "phpoption/phpoption",
|
||||||
"version": "1.5.0",
|
"version": "1.5.2",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/schmittjoh/php-option.git",
|
"url": "https://github.com/schmittjoh/php-option.git",
|
||||||
"reference": "94e644f7d2051a5f0fcf77d81605f152eecff0ed"
|
"reference": "2ba2586380f8d2b44ad1b9feb61c371020b27793"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/schmittjoh/php-option/zipball/94e644f7d2051a5f0fcf77d81605f152eecff0ed",
|
"url": "https://api.github.com/repos/schmittjoh/php-option/zipball/2ba2586380f8d2b44ad1b9feb61c371020b27793",
|
||||||
"reference": "94e644f7d2051a5f0fcf77d81605f152eecff0ed",
|
"reference": "2ba2586380f8d2b44ad1b9feb61c371020b27793",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=5.3.0"
|
"php": ">=5.3.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "4.7.*"
|
"phpunit/phpunit": "^4.7|^5.0"
|
||||||
},
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "1.3-dev"
|
"dev-master": "1.5-dev"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
@@ -2650,7 +2650,7 @@
|
|||||||
},
|
},
|
||||||
"notification-url": "https://packagist.org/downloads/",
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
"license": [
|
"license": [
|
||||||
"Apache2"
|
"Apache-2.0"
|
||||||
],
|
],
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
@@ -2665,7 +2665,7 @@
|
|||||||
"php",
|
"php",
|
||||||
"type"
|
"type"
|
||||||
],
|
],
|
||||||
"time": "2015-07-25T16:39:46+00:00"
|
"time": "2019-11-06T22:27:00+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpseclib/phpseclib",
|
"name": "phpseclib/phpseclib",
|
||||||
@@ -4791,16 +4791,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/service-contracts",
|
"name": "symfony/service-contracts",
|
||||||
"version": "v1.1.7",
|
"version": "v1.1.8",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/service-contracts.git",
|
"url": "https://github.com/symfony/service-contracts.git",
|
||||||
"reference": "ffcde9615dc5bb4825b9f6aed07716f1f57faae0"
|
"reference": "ffc7f5692092df31515df2a5ecf3b7302b3ddacf"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/service-contracts/zipball/ffcde9615dc5bb4825b9f6aed07716f1f57faae0",
|
"url": "https://api.github.com/repos/symfony/service-contracts/zipball/ffc7f5692092df31515df2a5ecf3b7302b3ddacf",
|
||||||
"reference": "ffcde9615dc5bb4825b9f6aed07716f1f57faae0",
|
"reference": "ffc7f5692092df31515df2a5ecf3b7302b3ddacf",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -4845,7 +4845,7 @@
|
|||||||
"interoperability",
|
"interoperability",
|
||||||
"standards"
|
"standards"
|
||||||
],
|
],
|
||||||
"time": "2019-09-17T11:12:18+00:00"
|
"time": "2019-10-14T12:27:06+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/translation",
|
"name": "symfony/translation",
|
||||||
@@ -5727,24 +5727,24 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "composer/xdebug-handler",
|
"name": "composer/xdebug-handler",
|
||||||
"version": "1.3.3",
|
"version": "1.4.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/composer/xdebug-handler.git",
|
"url": "https://github.com/composer/xdebug-handler.git",
|
||||||
"reference": "46867cbf8ca9fb8d60c506895449eb799db1184f"
|
"reference": "cbe23383749496fe0f373345208b79568e4bc248"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/composer/xdebug-handler/zipball/46867cbf8ca9fb8d60c506895449eb799db1184f",
|
"url": "https://api.github.com/repos/composer/xdebug-handler/zipball/cbe23383749496fe0f373345208b79568e4bc248",
|
||||||
"reference": "46867cbf8ca9fb8d60c506895449eb799db1184f",
|
"reference": "cbe23383749496fe0f373345208b79568e4bc248",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^5.3.2 || ^7.0",
|
"php": "^5.3.2 || ^7.0 || ^8.0",
|
||||||
"psr/log": "^1.0"
|
"psr/log": "^1.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5"
|
"phpunit/phpunit": "^4.8.35 || ^5.7 || 6.5 - 8"
|
||||||
},
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"autoload": {
|
"autoload": {
|
||||||
@@ -5762,12 +5762,12 @@
|
|||||||
"email": "john-stevenson@blueyonder.co.uk"
|
"email": "john-stevenson@blueyonder.co.uk"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "Restarts a process without xdebug.",
|
"description": "Restarts a process without Xdebug.",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"Xdebug",
|
"Xdebug",
|
||||||
"performance"
|
"performance"
|
||||||
],
|
],
|
||||||
"time": "2019-05-27T17:52:04+00:00"
|
"time": "2019-11-06T16:40:04+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "doctrine/instantiator",
|
"name": "doctrine/instantiator",
|
||||||
@@ -6780,16 +6780,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpunit/phpunit",
|
"name": "phpunit/phpunit",
|
||||||
"version": "8.4.2",
|
"version": "8.4.3",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/sebastianbergmann/phpunit.git",
|
"url": "https://github.com/sebastianbergmann/phpunit.git",
|
||||||
"reference": "a142a7e66c0ea7b5b6c04ee27f08d10d1137cd9b"
|
"reference": "67f9e35bffc0dd52d55d565ddbe4230454fd6a4e"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/a142a7e66c0ea7b5b6c04ee27f08d10d1137cd9b",
|
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/67f9e35bffc0dd52d55d565ddbe4230454fd6a4e",
|
||||||
"reference": "a142a7e66c0ea7b5b6c04ee27f08d10d1137cd9b",
|
"reference": "67f9e35bffc0dd52d55d565ddbe4230454fd6a4e",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -6859,7 +6859,7 @@
|
|||||||
"testing",
|
"testing",
|
||||||
"xunit"
|
"xunit"
|
||||||
],
|
],
|
||||||
"time": "2019-10-28T10:39:51+00:00"
|
"time": "2019-11-06T09:42:23+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "roave/security-advisories",
|
"name": "roave/security-advisories",
|
||||||
@@ -6867,12 +6867,12 @@
|
|||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Roave/SecurityAdvisories.git",
|
"url": "https://github.com/Roave/SecurityAdvisories.git",
|
||||||
"reference": "f8c8349a4b12a26edfa8b21d07d3dbeb6dcedcfa"
|
"reference": "15eb463aecc9e315b89b744ee0feb0bb1b4c6787"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/Roave/SecurityAdvisories/zipball/f8c8349a4b12a26edfa8b21d07d3dbeb6dcedcfa",
|
"url": "https://api.github.com/repos/Roave/SecurityAdvisories/zipball/15eb463aecc9e315b89b744ee0feb0bb1b4c6787",
|
||||||
"reference": "f8c8349a4b12a26edfa8b21d07d3dbeb6dcedcfa",
|
"reference": "15eb463aecc9e315b89b744ee0feb0bb1b4c6787",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"conflict": {
|
"conflict": {
|
||||||
@@ -6961,7 +6961,7 @@
|
|||||||
"propel/propel": ">=2-alpha.1,<=2-alpha.7",
|
"propel/propel": ">=2-alpha.1,<=2-alpha.7",
|
||||||
"propel/propel1": ">=1,<=1.7.1",
|
"propel/propel1": ">=1,<=1.7.1",
|
||||||
"pusher/pusher-php-server": "<2.2.1",
|
"pusher/pusher-php-server": "<2.2.1",
|
||||||
"robrichards/xmlseclibs": ">=1,<3.0.2",
|
"robrichards/xmlseclibs": ">=1,<3.0.4",
|
||||||
"sabre/dav": ">=1.6,<1.6.99|>=1.7,<1.7.11|>=1.8,<1.8.9",
|
"sabre/dav": ">=1.6,<1.6.99|>=1.7,<1.7.11|>=1.8,<1.8.9",
|
||||||
"sensiolabs/connect": "<4.2.3",
|
"sensiolabs/connect": "<4.2.3",
|
||||||
"serluck/phpwhois": "<=4.2.6",
|
"serluck/phpwhois": "<=4.2.6",
|
||||||
@@ -7075,7 +7075,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "Prevents installation of composer packages with known security vulnerabilities: no API, simply require it",
|
"description": "Prevents installation of composer packages with known security vulnerabilities: no API, simply require it",
|
||||||
"time": "2019-10-29T22:11:03+00:00"
|
"time": "2019-11-07T10:12:47+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "sebastian/code-unit-reverse-lookup",
|
"name": "sebastian/code-unit-reverse-lookup",
|
||||||
|
Reference in New Issue
Block a user