@@ -133,11 +133,18 @@ |
||
| 133 | 133 | $I->assertNull($Plugin); |
| 134 | 134 | } |
| 135 | 135 | |
| 136 | + /** |
|
| 137 | + * @param string $tableName |
|
| 138 | + */ |
|
| 136 | 139 | private function tableExists($tableName) |
| 137 | 140 | { |
| 138 | 141 | return $this->conn->executeQuery("SELECT count(*) FROM information_schema.columns WHERE table_name = '${tableName}';")->fetch()['count'] > 0; |
| 139 | 142 | } |
| 140 | 143 | |
| 144 | + /** |
|
| 145 | + * @param string $tableName |
|
| 146 | + * @param string $columnName |
|
| 147 | + */ |
|
| 141 | 148 | private function columnExists($tableName, $columnName) |
| 142 | 149 | { |
| 143 | 150 | return $this->conn->executeQuery("SELECT count(*) FROM information_schema.columns WHERE table_name = '${tableName}' AND column_name = '${columnName}';")->fetch()['count'] == 1; |