public function getSmallIntTypeDeclarationSQL(array $field) { if (!empty($field['autoincrement'])) { return 'SMALLSERIAL'; } return parent::getSmallIntTypeDeclarationSQL($field); }