activerecord-mysql2rgeo-adapter 7.0.0 → 7.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8477b01680100a780afd5d1a41bbb7124e4e9442b7aa026a29741ec7fe729e42
|
|
4
|
+
data.tar.gz: 7e680ac1a09feb227b8b5111c7de278509982ea713f8146f56a55d43c212bcad
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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
|
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.
|
|
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:
|
|
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: '
|
|
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: '
|
|
82
|
+
version: '2.0'
|
|
83
83
|
- !ruby/object:Gem::Dependency
|
|
84
84
|
name: appraisal
|
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|