Пример #1
0
 /**
  * {@inheritDoc}
  */
 protected function _getCreateTableSQL($name, array $columns, array $options = array())
 {
     // if auto increment is set the column is already defined as primary key
     foreach ($columns as $column) {
         if (!empty($column['autoincrement'])) {
             $options['primary'] = null;
         }
     }
     return parent::_getCreateTableSQL($name, $columns, $options);
 }