We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Column type cannot be auto-increment for small int types

switch type {

    case self::TYPE_INTEGER:
    case self::TYPE_BIGINTEGER:
            let this->_autoIncrement = true;
            break;

    default:
            throw new Exception("Column type cannot be auto-increment");
}

Why we can't use smaller integer types as AI?

well it's right, we should add tinyint, smallint and medimumint. Create an issue in github

Good luck