Skip to content

Commit

Permalink
fix #1430 Windows版SQLiteの対応バージョンをconfig化する (#1431)
Browse files Browse the repository at this point in the history
  • Loading branch information
yama committed Apr 24, 2020
1 parent 1692388 commit de416aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/Baser/Config/setting.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@
'phpVersion' => "5.4.0",
'phpMemory' => "128",
'MySQLVersion' => "5.0.0",
'winSQLiteVersion' => "3.7.16",
'PostgreSQLVersion' => "8.4.0"
);

Expand Down
2 changes: 1 addition & 1 deletion lib/Baser/Controller/InstallationsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ protected function _getDbSource() {
$dbsource['sqlite'] = 'SQLite';
} elseif (class_exists('SQLite3')) {
$info = SQLite3::version();
if(version_compare($info['versionString'], '3.7.16', '>')) {
if(version_compare($info['versionString'], Configure::read('BcRequire.winSQLiteVersion'), '>')) {
$dbsource['sqlite'] = 'SQLite';
}
}
Expand Down

0 comments on commit de416aa

Please sign in to comment.