Commit ff67ef3d authored by Carsten  Rose's avatar Carsten Rose
Browse files

Add error if primary table is missing.

parent af965fd1
Pipeline #3238 failed with stages
in 1 minute and 28 seconds
......@@ -782,7 +782,7 @@ class Database {
* @throws \UserFormException
public function getTableDefinition($table) {
return $this->sql("SHOW FIELDS FROM `$table`");
return $this->sql("SHOW FIELDS FROM `$table`", ROW_EXPECT_GE_1, array(), "No columns found for table '$table'");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment