getColumnType method

  1. @override
String getColumnType(
  1. ColumnInfo column
)
override

Gets the SQL type string for a column.

Implementation

@override
String getColumnType(ColumnInfo column) {
  // Handle auto-increment integer primary keys as SERIAL
  if (column.primaryKey && column.autoIncrement && column.type == 'INTEGER') {
    return 'SERIAL';
  }
  return column.type;
}