fast_schema_dumper 0.5.4 → 0.5.5
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/CHANGELOG.md +7 -0
- data/lib/fast_schema_dumper/fast_dumper.rb +9 -9
- data/lib/fast_schema_dumper/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 82c764033800133b7c3d6eb20f337a2fd500edfe7444e8e3a9cc19d652fa1cc1
|
|
4
|
+
data.tar.gz: 57404fe3266a39b3c09858e38fa67930fee4a19f8d42d9b2cf98a78ff0918603
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 737815e4794bc7edcb644f87eb572d7166eb49f37a57fe5e3b7b3bd82999aa9291491321afcafc98a67fd46aed222b859a807849e5a27986c0f1a7f20dba4f36
|
|
7
|
+
data.tar.gz: 1057a10843c1ab556dcdfe570a9798b8630b7ea8aab965658773802ff8d12fce00ab8849402bbc017c51dcedcfbe4d412bcee8a782c938394c1d5bba31b9cf68
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [0.5.5] - 2026-11-06
|
|
4
|
+
|
|
5
|
+
- Require Active Record 7.2 or later. [#57](https://github.com/smartbank-inc/fast_schema_dumper/pull/57)
|
|
6
|
+
- Test against Active Record 7.2, 8.0 and 8.1 in CI. [#57](https://github.com/smartbank-inc/fast_schema_dumper/pull/57)
|
|
7
|
+
- Fix column option order to dump `collation` before `comment`, matching
|
|
8
|
+
`ActiveRecord::SchemaDumper` output. [#65](https://github.com/smartbank-inc/fast_schema_dumper/pull/65)
|
|
9
|
+
|
|
3
10
|
## [0.5.4] - 2026-08-04
|
|
4
11
|
|
|
5
12
|
- Support MySQL functional indexes (e.g. `INDEX ((LOWER(name)))`). Indexes
|
|
@@ -435,6 +435,15 @@ module FastSchemaDumper
|
|
|
435
435
|
# null
|
|
436
436
|
col_def += ", null: false" if column['IS_NULLABLE'] == 'NO'
|
|
437
437
|
|
|
438
|
+
# collation
|
|
439
|
+
if column['COLLATION_NAME'] && column['DATA_TYPE'] =~ /char|text/
|
|
440
|
+
# Check if it's different from the table's default collation
|
|
441
|
+
# For now, just check if it's utf8mb4_bin which seems to be the special case
|
|
442
|
+
if column['COLLATION_NAME'] == 'utf8mb4_bin'
|
|
443
|
+
col_def += ", collation: \"#{column['COLLATION_NAME']}\""
|
|
444
|
+
end
|
|
445
|
+
end
|
|
446
|
+
|
|
438
447
|
# comment
|
|
439
448
|
if column['COLUMN_COMMENT'] && !column['COLUMN_COMMENT'].empty?
|
|
440
449
|
col_def += ", comment: \"#{escape_string(column['COLUMN_COMMENT'])}\""
|
|
@@ -445,15 +454,6 @@ module FastSchemaDumper
|
|
|
445
454
|
col_def += ", unsigned: true"
|
|
446
455
|
end
|
|
447
456
|
|
|
448
|
-
# collation
|
|
449
|
-
if column['COLLATION_NAME'] && column['DATA_TYPE'] =~ /char|text/
|
|
450
|
-
# Check if it's different from the table's default collation
|
|
451
|
-
# For now, just check if it's utf8mb4_bin which seems to be the special case
|
|
452
|
-
if column['COLLATION_NAME'] == 'utf8mb4_bin'
|
|
453
|
-
col_def += ", collation: \"#{column['COLLATION_NAME']}\""
|
|
454
|
-
end
|
|
455
|
-
end
|
|
456
|
-
|
|
457
457
|
col_def
|
|
458
458
|
end
|
|
459
459
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fast_schema_dumper
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daisuke Aritomo
|
|
@@ -15,14 +15,14 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - ">="
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version:
|
|
18
|
+
version: 7.2.0
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - ">="
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version:
|
|
25
|
+
version: 7.2.0
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: bigdecimal
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|