mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-22 05:15:29 +09:00
Support index options
This commit is contained in:
parent
25373e6540
commit
4ad35bff8c
6 changed files with 25 additions and 6 deletions
|
|
@ -10,4 +10,5 @@ class Index
|
|||
public $name;
|
||||
public $columns = array();
|
||||
public $type = null;
|
||||
public $options = null;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -92,6 +92,10 @@ class Table
|
|||
}
|
||||
$idxtype = $index->type ? ($index->type . ' INDEX') : 'INDEX';
|
||||
$idxdef = ' ' . $idxtype . ' `' . $index->name . '` (' . implode(', ', $idxcolumns) . ')';
|
||||
if ($index->options)
|
||||
{
|
||||
$idxdef .= ' ' . $index->options;
|
||||
}
|
||||
$columns[] = $idxdef;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue