rodauth-tools 0.3.0 → 0.3.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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rodauth/tools/migration.rb +11 -3
- data/lib/rodauth/tools/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d6b7dce9af93d884748ed19771aff8061295da616488cde6b1d8cd22025f2165
|
|
4
|
+
data.tar.gz: b57d1b4d34dc706eb55e2184fee7fced8e7f789037527a5952ce22bfffc3b1ab
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9988d318c4ef84a8f350e81ab831ebbeac83072e15a3f76d4bd63a0a297e37ca45af73bfcb65efaab5a1220b719e9fc52e03ca27df4d92f32ede407a87a7c023
|
|
7
|
+
data.tar.gz: 45c670a15937b958cdb4c39b50672f6b5de179405777a288fb4893f1f987ad8baee54f88e5ef833541b11d83139bf6230a39aaa2a1afffe951fb29512e311020
|
data/Gemfile.lock
CHANGED
|
@@ -155,12 +155,20 @@ module Rodauth
|
|
|
155
155
|
end
|
|
156
156
|
|
|
157
157
|
# Helper method for JSON column type based on database type
|
|
158
|
+
#
|
|
159
|
+
# PostgreSQL: Use native jsonb type for efficient JSON storage and querying
|
|
160
|
+
# MySQL: Use native json type (supported since MySQL 5.7.8)
|
|
161
|
+
# SQLite: Use String type - SQLite stores JSON as text, but has JSON1 extension
|
|
162
|
+
# for querying. Sequel doesn't have a :json type for SQLite.
|
|
163
|
+
# Other: Fall back to String for maximum compatibility
|
|
158
164
|
def json_type
|
|
159
165
|
case db.database_type
|
|
160
166
|
when :postgres
|
|
161
|
-
:jsonb
|
|
162
|
-
when :
|
|
163
|
-
:json
|
|
167
|
+
':jsonb'
|
|
168
|
+
when :mysql
|
|
169
|
+
':json'
|
|
170
|
+
when :sqlite
|
|
171
|
+
String
|
|
164
172
|
else
|
|
165
173
|
String
|
|
166
174
|
end
|