activerecord-mysql2rgeo-adapter 7.0.0 → 7.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b51d6b8bbeef0f4003a744ff290caf196e9b244764e1dc0c213e686625f40c59
4
- data.tar.gz: 0e8e02728246d292e72bb5dd248ffa47a06a601acbde684551a9c098a1a96286
3
+ metadata.gz: 8477b01680100a780afd5d1a41bbb7124e4e9442b7aa026a29741ec7fe729e42
4
+ data.tar.gz: 7e680ac1a09feb227b8b5111c7de278509982ea713f8146f56a55d43c212bcad
5
5
  SHA512:
6
- metadata.gz: 4ffae8e8ff77dccdeff97ac7eaaa8167dd42bbc8fe3e51b0240973e729b453d5d99a4b56164bfc2538059e7ad9a0b5089dc8c14472c8469f8e21c3246986ce9b
7
- data.tar.gz: 6eb7aacd144536fe15a7068f5731e1d0f00d44b7d6044f94ae83254df5b1a684c579d0ab455d2ad2a2fde715b4594e1893229e25c90beac3389b4de137fb8725
6
+ metadata.gz: 1060dd9a7840478e5d40aafc15c4fcbb51128d8e9d2455f66ddb1b53d81747284a697a014ecfefa8da661c61e30cd5af51a3d32804b6545472f90cc6552e008b
7
+ data.tar.gz: bf5144c40e65da867e7abd9a67370af09e78f2cf0bb25328651c5b3a977161d35495d70ef80a3ac40f3a946b3b3933679d95afe76533720690022241ef9d19be
@@ -7,36 +7,13 @@ module ActiveRecord
7
7
  private
8
8
 
9
9
  def add_column_options!(sql, options)
10
- # By default, TIMESTAMP columns are NOT NULL, cannot contain NULL values,
11
- # and assigning NULL assigns the current timestamp. To permit a TIMESTAMP
12
- # column to contain NULL, explicitly declare it with the NULL attribute.
13
- # See https://dev.mysql.com/doc/refman/en/timestamp-initialization.html
14
- if /\Atimestamp\b/.match?(options[:column].sql_type) && !options[:primary_key]
15
- sql << " NULL" unless options[:null] == false || options_include_default?(options)
16
- end
17
-
18
10
  if options[:srid]
19
11
  sql << " /*!80003 SRID #{options[:srid]} */"
20
12
  end
21
13
 
22
- if charset = options[:charset]
23
- sql << " CHARACTER SET #{charset}"
24
- end
25
-
26
- if collation = options[:collation]
27
- sql << " COLLATE #{collation}"
28
- end
29
-
30
- if as = options[:as]
31
- sql << " AS (#{as})"
32
- if options[:stored]
33
- sql << (mariadb? ? " PERSISTENT" : " STORED")
34
- end
35
- end
36
-
37
- add_sql_comment!(super, options[:comment])
14
+ super
38
15
  end
39
16
  end
40
17
  end
41
18
  end
42
- end
19
+ end
@@ -3,7 +3,7 @@
3
3
  module ActiveRecord
4
4
  module ConnectionAdapters
5
5
  module Mysql2Rgeo
6
- VERSION = "7.0.0"
6
+ VERSION = "7.0.1"
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-mysql2rgeo-adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.0
4
+ version: 7.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yongdae Hwang
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-13 00:00:00.000000000 Z
11
+ date: 2023-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '1.1'
75
+ version: '2.0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '1.1'
82
+ version: '2.0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: appraisal
85
85
  requirement: !ruby/object:Gem::Requirement