Update Update.php

This commit is contained in:
genofire 2019-03-27 13:57:59 +01:00 committed by GitHub
parent a980b0c995
commit 28dd79b7a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,12 +72,6 @@ class Update
private function getCurrentVersion() : int
{
$query = $this->db->prepare('SHOW TABLES LIKE \'options\';');
$query->execute();
if ($query->fetch() === false) {
return 0;
}
$query = $this->db->prepare('SELECT value FROM options WHERE name=\'schema_version\'');
$query->execute();