Skip to content

Commit

Permalink
FIX: MySQL Identifier Syntax
Browse files Browse the repository at this point in the history
 - fixes #21 - thanks @alfredbuehler
  • Loading branch information
aljawaid committed Aug 22, 2023
1 parent 651b3c0 commit 0204c4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Model/ApplicationCleaningModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function countTables()
case 'mysql':
return $this->db->table($this->getTable())
->eq('table_schema', DB_NAME)
->eq('TABLE_TYPE', 'BASE TABLE')
->eq('table_type', 'BASE TABLE')
->count();
break;
case 'postgres':
Expand All @@ -51,7 +51,7 @@ public function countTables()
default:
return $this->db->table($this->getTable())
->eq('table_schema', DB_NAME)
->eq('TABLE_TYPE', 'BASE TABLE')
->eq('table_type', 'BASE TABLE')
->count();
}
}
Expand Down
6 changes: 2 additions & 4 deletions Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,8 @@ public function getPluginVersion()

public function getCompatibleVersion()
{
// Examples:
// >=1.0.37
// <1.0.37
// <=1.0.37
// Examples: '>=1.0.37' '<1.0.37' '<=1.0.37'
// Tested on KB v1.2.32+ from plugin v1.0.0
return '>=1.2.20';
}

Expand Down

0 comments on commit 0204c4a

Please sign in to comment.