@@ -277,11 +277,18 @@ |
||
277 | 277 | $I->assertFileNotExists($updatedPath); |
278 | 278 | } |
279 | 279 | |
280 | + /** |
|
281 | + * @param string $tableName |
|
282 | + */ |
|
280 | 283 | private function tableExists($tableName) |
281 | 284 | { |
282 | 285 | return $this->conn->executeQuery("SELECT count(*) AS count FROM information_schema.columns WHERE table_name = '${tableName}';")->fetch()['count'] > 0; |
283 | 286 | } |
284 | 287 | |
288 | + /** |
|
289 | + * @param string $tableName |
|
290 | + * @param string $columnName |
|
291 | + */ |
|
285 | 292 | private function columnExists($tableName, $columnName) |
286 | 293 | { |
287 | 294 | return $this->conn->executeQuery("SELECT count(*) AS count FROM information_schema.columns WHERE table_name = '${tableName}' AND column_name = '${columnName}';")->fetch()['count'] == 1; |