mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Clean up handling of table schemas that are marked as deleted in XML
This commit is contained in:
parent
14cb0e7977
commit
f99102ca33
3 changed files with 6 additions and 6 deletions
|
|
@ -782,11 +782,11 @@ class DB
|
|||
$table = Parsers\DBTableParser::loadXML($filename, $content);
|
||||
if (!$table)
|
||||
{
|
||||
return $this->setError(-1, 'Table creation failed.');
|
||||
return $this->setError(-1, 'Failed to load table schema file');
|
||||
}
|
||||
if ($table->deleted)
|
||||
{
|
||||
return new Helpers\DBResultHelper;
|
||||
return new Helpers\DBResultHelper(-1, 'Table is marked as deleted');
|
||||
}
|
||||
|
||||
// Generate the CREATE TABLE query and execute it.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue