mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-26 05:42:13 +09:00
Use new parser to create all tables
This commit is contained in:
parent
93be42c477
commit
92ff69591f
2 changed files with 16 additions and 131 deletions
|
|
@ -51,7 +51,14 @@ class DBTableParser
|
|||
|
||||
// Initialize table definition.
|
||||
$table = new DBTable\Table;
|
||||
$table->name = preg_replace('/\.xml$/', '', basename($filename));
|
||||
if ($filename)
|
||||
{
|
||||
$table->name = preg_replace('/\.xml$/', '', basename($filename));
|
||||
}
|
||||
else
|
||||
{
|
||||
$table->name = strval($xml['name']);
|
||||
}
|
||||
|
||||
// Load columns.
|
||||
foreach ($xml->column as $column_info)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue