Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Unreleased

# 4.5.0 (Feb, 2025)
* Update test matrix to include Rails 8
* Add option to force tables to use default engine
* Change default algorithm for add/rename/remove column operations
* Drop support for ActiveRecord version 6.1, as it has reached EOL
* Add support for tables with generated columns

# 4.4.2 (Sep, 2024)
* Allow caller to set the algorithm that will be used for DDL ALTER TABLE operations

Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
lhm-shopify (4.4.2)
lhm-shopify (4.5.0)
retriable (>= 3.0.0)

GEM
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/activerecord_7.2.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ..
specs:
lhm-shopify (4.4.2)
lhm-shopify (4.5.0)
retriable (>= 3.0.0)

GEM
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/activerecord_8.0.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ..
specs:
lhm-shopify (4.4.2)
lhm-shopify (4.5.0)
retriable (>= 3.0.0)

GEM
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/activerecord_head.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ GIT
PATH
remote: ..
specs:
lhm-shopify (4.4.2)
lhm-shopify (4.5.0)
retriable (>= 3.0.0)

GEM
Expand Down
2 changes: 1 addition & 1 deletion lib/lhm/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
# Schmidt

module Lhm
VERSION = '4.4.2'
VERSION = '4.5.0'
end
6 changes: 3 additions & 3 deletions spec/integration/lhm_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -561,14 +561,14 @@
t.add_column(:sample_additional_column, "VARCHAR(255)")
end

slave do
replica do
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes a failing test introduced by #141. I had to merge that PR manually because it was out of date and missed this.

# new column is added
value(table_read(:users).columns['sample_additional_column']).must_equal({
:type => 'varchar(255)',
:is_nullable => 'YES',
:column_default => nil,
:comment => '',
:collate => 'utf8_general_ci',
:collate => collation,
})

# generated column remains intact
Expand All @@ -577,7 +577,7 @@
:is_nullable => 'YES',
:column_default => nil,
:comment => '',
:collate => 'utf8_general_ci',
:collate => collation,
})
end

Expand Down