lib/arjdbc/sqlite3/adapter.rb
# DIFFERENCE: Some common constant names to reduce differences in rest of this module from AR5 version
Some common constant names to reduce differences in rest of this module from AR5 version
Some common constant names to reduce differences in rest of this module from AR5 version
def change_column(table_name, column_name, type, options = {}) 
      alter_table(table_name) do |definition|
        include_default = options_include_default?(options)
        definition[column_name].instance_eval do
          self.type    = type
          self.limit   = options[:limit] if options.include?(:limit)
          self.default = options[:default] if include_default
          self.null    = options[:null] if options.include?(:null)
          self.precision = options[:precision] if options.include?(:precision)
          self.scale   = options[:scale] if options.include?(:scale)
          self.collation = options[:collation] if options.include?(:collation)
        end
      end
    end
def change_column ( table_name , column_name , type , options = { } ) alter_table ( table_name ) do | definition | include_default = options_include_default? ( options ) definition [ column_name ] . instance_eval do self . type = type self . limit = options [ :limit ] if options . include? ( :limit ) self . default = options [ :default ] if include_default self . null = options [ :null ] if options . include? ( :null ) self . precision = options [ :precision ] if options . include? ( :precision ) self . scale = options [ :scale ] if options . include? ( :scale ) self . collation = options [ :collation ] if options . include? ( :collation ) end end end
DIFFERENCE: Some common constant names to reduce differences in rest of this module from AR5 version
DIFFERENCE : Some common constant names to reduce differences in rest of this module from AR5 version
#:nodoc:
table_name
<not_specific>
column_name
<not_specific>
type
<not_specific>
options
<not_specific>