# File lib/kirbybase.rb, line 2494
    def change_column_type(col_name, col_type)
        raise "Do not execute this method in client/server mode!" if \
         @db.client?

        raise "Cannot change type for recno column!" if col_name == :recno
        raise 'Invalid column name: ' % col_name unless \
         @field_names.include?(col_name)
        
        raise 'Invalid field type: %s' % col_type unless \
         KBTable.valid_field_type?(col_type)

        @db.engine.change_column_type(self, col_name, col_type)

        # Need to reinitialize the table instance and associated indexes.

        @db.engine.remove_recno_index(@name)
        @db.engine.remove_indexes(@name)

        update_header_vars
        create_indexes
        create_table_class unless @db.server?
    end