Alpha/Model/ActiveRecordProviderMySQL.php 1 location
|
@@ 1210-1219 (lines=10) @@
|
| 1207 |
|
} |
| 1208 |
|
|
| 1209 |
|
$stmt->close(); |
| 1210 |
|
} else { |
| 1211 |
|
self::$logger->warn('The following query caused an unexpected result ['.$sqlQuery.']'); |
| 1212 |
|
if (!$this->BO->checkTableExists()) { |
| 1213 |
|
$this->BO->makeTable(); |
| 1214 |
|
|
| 1215 |
|
throw new RecordNotFoundException('Failed to get the version number, table did not exist so had to create!'); |
| 1216 |
|
} |
| 1217 |
|
|
| 1218 |
|
return; |
| 1219 |
|
} |
| 1220 |
|
|
| 1221 |
|
if (!isset($row['version_num']) || $row['version_num'] < 1) { |
| 1222 |
|
self::$logger->debug('<<getVersion [0]'); |
Alpha/Model/ActiveRecordProviderSQLite.php 1 location
|
@@ 1257-1266 (lines=10) @@
|
| 1254 |
|
$row = $result->fetchArray(SQLITE3_ASSOC); |
| 1255 |
|
|
| 1256 |
|
$stmt->close(); |
| 1257 |
|
} else { |
| 1258 |
|
self::$logger->warn('The following query caused an unexpected result ['.$sqlQuery.']'); |
| 1259 |
|
if (!$this->BO->checkTableExists()) { |
| 1260 |
|
$this->BO->makeTable(); |
| 1261 |
|
|
| 1262 |
|
throw new RecordNotFoundException('Failed to get the version number, table did not exist so had to create!'); |
| 1263 |
|
} |
| 1264 |
|
|
| 1265 |
|
return; |
| 1266 |
|
} |
| 1267 |
|
|
| 1268 |
|
if (!isset($row['version_num']) || $row['version_num'] < 1) { |
| 1269 |
|
self::$logger->debug('<<getVersion [0]'); |