Fix #1550 mark counter_site_status table as deleted

This commit is contained in:
Kijin Sung 2021-01-08 23:54:50 +09:00
parent 34280af0f0
commit c26325efee
5 changed files with 28 additions and 5 deletions

View file

@ -686,6 +686,10 @@ class DB
{
return $this->setError(-1, 'Table creation failed.');
}
if ($table->deleted)
{
return new \BaseObject;
}
// Generate the CREATE TABLE query and execute it.
$query_string = $table->getCreateQuery($this->_prefix, $this->_charset, $this->_engine);

View file

@ -12,6 +12,7 @@ class Table
public $indexes = array();
public $primary_key = array();
public $constraints = array();
public $deleted = false;
/**
* Generate the CREATE TABLE query for this table.

View file

@ -61,6 +61,12 @@ class DBTableParser extends BaseParser
$table->name = strval($xml['name']);
}
$deleted = strval($xml['deleted']);
if ($deleted !== '')
{
$table->deleted = toBool($deleted);
}
// Load columns.
foreach ($xml->column as $column_info)
{