uuid_v7 0.1.6 → 0.1.6.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: 82dc635e5c3c82eefc11db92a77014473d6f3a9e9c881415487a237a3925c86d
|
4
|
+
data.tar.gz: ffc8f4a247decfb863c3d11482fb34118c8ff647c9e1e4fa8453ec3248a09e10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da7aae138eb91b51ff144c953a38eed903b292a3b09f24097097e5989a956af354da96c791885eb3d97ed3b4353d2a539d08221e94ad20a22c962fb6a3fb706e
|
7
|
+
data.tar.gz: a96d5823744d3ebead0ea9145f74b5ff7e4be646d072f4adafd47342aec0a00328ca48bcfb954941f1ad88bef44f51785bf42b57b973cd0d68420abf0d02d56f
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
## [0.1.6.1] - 2025-03-16
|
4
|
+
|
5
|
+
- Update the lib/generators/uuid_v7/migrations/templates/create_table_migration.rb.tt to handle Trilogy.
|
6
|
+
|
3
7
|
## [0.1.6] - 2025-03-16
|
4
8
|
|
5
9
|
- Add the support of the DB adapter Trilogy https://github.com/trilogy-libraries/trilogy
|
@@ -5,7 +5,7 @@
|
|
5
5
|
#
|
6
6
|
class <%= migration_class_name %> < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>]
|
7
7
|
def change
|
8
|
-
<% if ["SQLite", "Mysql2"].include?(ActiveRecord::Base.connection.adapter_name) -%>
|
8
|
+
<% if ["SQLite", "Mysql2", "Trilogy"].include?(ActiveRecord::Base.connection.adapter_name) -%>
|
9
9
|
create_table :<%= table_name %>, id: false do |t|
|
10
10
|
t.binary :<%= UuidV7.configuration.field_name %>, limit: 16, null: false, index: { unique: true }, primary_key: true
|
11
11
|
<% else -%>
|
@@ -17,7 +17,7 @@ class <%= migration_class_name %> < ActiveRecord::Migration[<%= ActiveRecord::Mi
|
|
17
17
|
<% elsif attribute.token? -%>
|
18
18
|
t.string :<%= attribute.name %><%= attribute.inject_options %>
|
19
19
|
<% elsif attribute.reference? -%>
|
20
|
-
<% if ["SQLite", "Mysql2"].include?(ActiveRecord::Base.connection.adapter_name) -%>
|
20
|
+
<% if ["SQLite", "Mysql2", "Trilogy"].include?(ActiveRecord::Base.connection.adapter_name) -%>
|
21
21
|
<% if UuidV7.configuration.field_name == :id -%>
|
22
22
|
t.references :<%= attribute.name %>, foreign_key: true, index: true, type: :binary, limit: 16, null: false
|
23
23
|
<% else -%>
|
data/lib/uuid_v7/version.rb
CHANGED