mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +00:00
fetch all records from tblVersion
if not, the database will be locked when e.g. droping a table
This commit is contained in:
parent
88e4c0f3b9
commit
1652d9a237
|
@ -61,7 +61,9 @@ if (!$db) {
|
||||||
|
|
||||||
$errorMsg = '';
|
$errorMsg = '';
|
||||||
$res = $db->query('select * from tblVersion');
|
$res = $db->query('select * from tblVersion');
|
||||||
if($rec = $res->fetch(PDO::FETCH_ASSOC)) {
|
$recs = $res->fetchAll(PDO::FETCH_ASSOC);
|
||||||
|
if(!empty($recs)) {
|
||||||
|
$rec = $recs[0];
|
||||||
if($_GET['version'] > $rec['major'].'.'.$rec['minor'].'.'.$rec['subminor']) {
|
if($_GET['version'] > $rec['major'].'.'.$rec['minor'].'.'.$rec['subminor']) {
|
||||||
|
|
||||||
if(file_exists('update-'.$_GET['version'].'/'.$sqlfile)) {
|
if(file_exists('update-'.$_GET['version'].'/'.$sqlfile)) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user