Alpha/Model/ActiveRecordProviderMySQL.php 1 location
|
@@ 1213-1222 (lines=10) @@
|
| 1210 |
|
} |
| 1211 |
|
|
| 1212 |
|
$stmt->close(); |
| 1213 |
|
} else { |
| 1214 |
|
self::$logger->warn('The following query caused an unexpected result ['.$sqlQuery.']'); |
| 1215 |
|
if (!$this->BO->checkTableExists()) { |
| 1216 |
|
$this->BO->makeTable(); |
| 1217 |
|
|
| 1218 |
|
throw new RecordNotFoundException('Failed to get the version number, table did not exist so had to create!'); |
| 1219 |
|
} |
| 1220 |
|
|
| 1221 |
|
return; |
| 1222 |
|
} |
| 1223 |
|
|
| 1224 |
|
if (!isset($row['version_num']) || $row['version_num'] < 1) { |
| 1225 |
|
self::$logger->debug('<<getVersion [0]'); |
Alpha/Model/ActiveRecordProviderSQLite.php 1 location
|
@@ 1225-1234 (lines=10) @@
|
| 1222 |
|
$row = $result->fetchArray(SQLITE3_ASSOC); |
| 1223 |
|
|
| 1224 |
|
$stmt->close(); |
| 1225 |
|
} else { |
| 1226 |
|
self::$logger->warn('The following query caused an unexpected result ['.$sqlQuery.']'); |
| 1227 |
|
if (!$this->BO->checkTableExists()) { |
| 1228 |
|
$this->BO->makeTable(); |
| 1229 |
|
|
| 1230 |
|
throw new RecordNotFoundException('Failed to get the version number, table did not exist so had to create!'); |
| 1231 |
|
} |
| 1232 |
|
|
| 1233 |
|
return; |
| 1234 |
|
} |
| 1235 |
|
|
| 1236 |
|
if (!isset($row['version_num']) || $row['version_num'] < 1) { |
| 1237 |
|
self::$logger->debug('<<getVersion [0]'); |