summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Components/PartitionDefinition.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Components/PartitionDefinition.php b/src/Components/PartitionDefinition.php
index 766d58d..daa1cf6 100644
--- a/src/Components/PartitionDefinition.php
+++ b/src/Components/PartitionDefinition.php
@@ -38,6 +38,7 @@ class PartitionDefinition extends Component
public static $OPTIONS = array(
'STORAGE' => array(1, 'var'),
'STORAGE ENGINE' => array(1, 'var'),
+ 'ENGINE' => array(1, 'var'),
'COMMENT' => array(2, 'var'),
'DATA DIRECTORY' => array(3, 'var'),
'INDEX DIRECTORY' => array(4, 'var'),
@@ -201,13 +202,13 @@ class PartitionDefinition extends Component
return "(\n" . implode(",\n", $component) . "\n)";
} else {
if ($component->isSubpartition) {
- return 'SUBPARTITION ' . $component->name;
+ return 'SUBPARTITION ' . $component->name . ' ' . $component->options;
} else {
$subpartitions = empty($component->subpartitions)
? '' : ' ' . PartitionDefinition::build($component->subpartitions);
return 'PARTITION ' . $component->name
. ' VALUES ' . $component->type . ' ' . $component->expr
- . $subpartitions;
+ . $component->options . $subpartitions;
}
}
}