function sequenceKey()
{
- $table = self::schemaDef();
+ $table = call_user_func(array(get_class($this), 'schemaDef'));
foreach ($table['fields'] as $name => $column) {
if ($column['type'] == 'serial') {
// We have a serial/autoincrement column.
function keyTypes()
{
- $keys = array();
- $table = self::schemaDef();
+ $table = call_user_func(array(get_class($this), 'schemaDef'));
if (!empty($table['unique keys'])) {
foreach ($table['unique keys'] as $idx => $fields) {