mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 00:02:21 +09:00
Support more index types in DB table parser
UNIQUE, SPATIAL, FULLTEXT
This commit is contained in:
parent
5f8ceafdf6
commit
9b776942e5
5 changed files with 25 additions and 8 deletions
|
|
@ -90,7 +90,7 @@ class Table
|
|||
}
|
||||
$idxcolumns[] = '`' . $column_name . '`' . ($prefix_size > 0 ? "($prefix_size)" : '');
|
||||
}
|
||||
$idxtype = ($index->is_unique ? 'UNIQUE' : 'INDEX');
|
||||
$idxtype = $index->type ? ($index->type . ' INDEX') : 'INDEX';
|
||||
$idxdef = ' ' . $idxtype . ' `' . $index->name . '` (' . implode(', ', $idxcolumns) . ')';
|
||||
$columns[] = $idxdef;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue