activerecord-postgis-adapter 9.0.0 → 9.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: 1431c8f09469d4559144c63ce0d279428e605dee782e1f124bdcb548a43e2453
|
4
|
+
data.tar.gz: 1d881e51d00762d2386f6caffd034574f8520f8b0f555657bf84fd2bc42b1137
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98a82b579c6e9cd7dd67d078eff97b0a107fd9375a5eb849178d9d78e06646a776f92995606fdc63920f4e49482a57fc8c101e72df667770939f3a964ef0152f
|
7
|
+
data.tar.gz: 5b81ac852c3a60f27985083125a26a375ee5d76c5b26c56c4cfa1d9284bb8449664822bb24ab575d56dc8851dc740034b8f6e95535884176709c9dd15099df4b
|
@@ -8,7 +8,7 @@ module ActiveRecord
|
|
8
8
|
# https://github.com/rails/rails/blob/7-0-stable/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb#L662
|
9
9
|
# Create a SpatialColumn instead of a PostgreSQL::Column
|
10
10
|
def new_column_from_field(table_name, field, _definitions)
|
11
|
-
column_name, type, default, notnull, oid, fmod, collation, comment, attgenerated = field
|
11
|
+
column_name, type, default, notnull, oid, fmod, collation, comment, identity, attgenerated = field
|
12
12
|
type_metadata = fetch_type_metadata(column_name, type, oid.to_i, fmod.to_i)
|
13
13
|
default_value = extract_value_from_default(default)
|
14
14
|
|
@@ -35,6 +35,7 @@ module ActiveRecord
|
|
35
35
|
comment: comment.presence,
|
36
36
|
serial: serial,
|
37
37
|
generated: attgenerated,
|
38
|
+
identity: identity.presence,
|
38
39
|
spatial: spatial
|
39
40
|
)
|
40
41
|
end
|
@@ -9,7 +9,7 @@ module ActiveRecord # :nodoc:
|
|
9
9
|
# "Geography(Point,4326)"
|
10
10
|
def initialize(name, default, sql_type_metadata = nil, null = true,
|
11
11
|
default_function = nil, collation: nil, comment: nil,
|
12
|
-
serial: nil, generated: nil, spatial: nil)
|
12
|
+
serial: nil, generated: nil, spatial: nil, identity: nil)
|
13
13
|
@sql_type_metadata = sql_type_metadata
|
14
14
|
@geographic = !!(sql_type_metadata.sql_type =~ /geography\(/i)
|
15
15
|
if spatial
|
@@ -31,7 +31,7 @@ module ActiveRecord # :nodoc:
|
|
31
31
|
build_from_sql_type(sql_type_metadata.sql_type)
|
32
32
|
end
|
33
33
|
super(name, default, sql_type_metadata, null, default_function,
|
34
|
-
collation: collation, comment: comment, serial: serial, generated: generated)
|
34
|
+
collation: collation, comment: comment, serial: serial, generated: generated, identity: identity)
|
35
35
|
if spatial? && @srid
|
36
36
|
@limit = { srid: @srid, type: to_type_name(geometric_type) }
|
37
37
|
@limit[:has_z] = true if @has_z
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-postgis-adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 9.0.
|
4
|
+
version: 9.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Azuma
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-10-
|
12
|
+
date: 2023-10-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|