File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,11 @@ def initialize(...)
58
58
@connection_parameters ||= @config
59
59
end
60
60
61
+ # NOTE: redefines constant defined in abstract class however this time
62
+ # will use methods defined in the mysql abstract class and map properly
63
+ # mysql types.
64
+ TYPE_MAP = Type ::TypeMap . new . tap { |m | initialize_type_map ( m ) }
65
+
61
66
def self . database_exists? ( config )
62
67
conn = ActiveRecord ::Base . mysql2_connection ( config )
63
68
conn && conn . really_valid?
Original file line number Diff line number Diff line change @@ -132,7 +132,8 @@ def test_schema_dump_should_not_have_limits_on_date
132
132
133
133
def test_should_include_limit
134
134
text_column = connection . columns ( 'memos' ) . find { |c | c . name == 'text' }
135
- assert_equal 4294967295 , text_column . limit
135
+
136
+ assert_equal 4_294_967_295 , text_column . limit
136
137
end
137
138
138
139
def test_should_set_sqltype_to_longtext
You can’t perform that action at this time.
0 commit comments