mirror of
https://github.com/flarum/framework.git
synced 2024-11-26 10:14:16 +08:00
have install command demand php 7.1 too
This commit is contained in:
parent
b78129b36b
commit
9c7cc0548e
|
@ -242,8 +242,8 @@ class InstallCommand extends AbstractCommand
|
||||||
$db = $this->application->make('flarum.db');
|
$db = $this->application->make('flarum.db');
|
||||||
$version = $db->getPdo()->getAttribute(PDO::ATTR_SERVER_VERSION);
|
$version = $db->getPdo()->getAttribute(PDO::ATTR_SERVER_VERSION);
|
||||||
|
|
||||||
if (version_compare($version, '5.5.0', '<')) {
|
if (version_compare($version, '7.1.0', '<')) {
|
||||||
throw new Exception('MySQL version too low. You need at least MySQL 5.5.');
|
throw new Exception('MySQL version too low. You need at least MySQL 7.1.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->info('Writing config');
|
$this->info('Writing config');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user