package liquibase.datatype.core;

import liquibase.database.Database;
import liquibase.database.core.*;
import liquibase.datatype.DataTypeInfo;
import liquibase.datatype.DatabaseDataType;
import liquibase.datatype.LiquibaseDataType;

@DataTypeInfo(name="number", aliases = {"numeric", "java.sql.Types.NUMERIC"}, minParameters = 0, maxParameters = 0, priority = LiquibaseDataType.PRIORITY_DEFAULT)
public class NumberType extends LiquibaseDataType {
    @Override
    public DatabaseDataType toDatabaseDataType(Database database) {
        if (database instanceof MySQLDatabase || database instanceof DB2Database|| database instanceof MSSQLDatabase
                || database instanceof HsqlDatabase || database instanceof DerbyDatabase || database instanceof PostgresDatabase || database instanceof FirebirdDatabase) {
            return new DatabaseDataType("numeric", getParameters());
        }
        return super.toDatabaseDataType(database);
    }
}

@@ -442,16 +442,238 @@
 aType %7B%0A
+%0A    private boolean autoIncrement;%0A%0A    public boolean isAutoIncrement() %7B%0A        return autoIncrement;%0A    %7D%0A%0A    public void setAutoIncrement(boolean autoIncrement) %7B%0A        this.autoIncrement = autoIncrement;%0A    %7D%0A%0A
     @Ove

Add support for autoIncrement on NumberType