@@ -205,11 +205,18 @@ |
||
| 205 | 205 | $I->assertNull($Plugin); |
| 206 | 206 | } |
| 207 | 207 | |
| 208 | + /** |
|
| 209 | + * @param string $tableName |
|
| 210 | + */ |
|
| 208 | 211 | private function tableExists($tableName) |
| 209 | 212 | { |
| 210 | 213 | return $this->conn->executeQuery("SELECT count(*) AS count FROM information_schema.columns WHERE table_name = '${tableName}';")->fetch()['count'] > 0; |
| 211 | 214 | } |
| 212 | 215 | |
| 216 | + /** |
|
| 217 | + * @param string $tableName |
|
| 218 | + * @param string $columnName |
|
| 219 | + */ |
|
| 213 | 220 | private function columnExists($tableName, $columnName) |
| 214 | 221 | { |
| 215 | 222 | return $this->conn->executeQuery("SELECT count(*) AS count FROM information_schema.columns WHERE table_name = '${tableName}' AND column_name = '${columnName}';")->fetch()['count'] == 1; |
@@ -81,7 +81,7 @@ |
||
| 81 | 81 | * |
| 82 | 82 | * @throws PluginException |
| 83 | 83 | * |
| 84 | - * @param string $command |
|
| 84 | + * @param string[] $commands |
|
| 85 | 85 | */ |
| 86 | 86 | public function runCommand($commands, $output = null, $init = true) |
| 87 | 87 | { |