You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the below code on one of our bigger dummy tables, the migration process still locks the table itself and prevents access. Doing other operations such as add/remove column work without locking it, however trying to change the length of a column still locks it.
Lhm.change_table :shipments, :atomic_switch => true do |m|
m.ddl("ALTER TABLE shipments MODIFY tracking_number VARCHAR(255) NOT NULL;")
end
Lhm.change_table :shipments, :atomic_switch => true do |m|
m.change_column :tracking_number, "VARCHAR(255)"
end
The text was updated successfully, but these errors were encountered:
gsingh0317
changed the title
Lhm locling table during column length change
Lhm locking table during column length change
Mar 13, 2023
Using the below code on one of our bigger dummy tables, the migration process still locks the table itself and prevents access. Doing other operations such as add/remove column work without locking it, however trying to change the length of a column still locks it.
The text was updated successfully, but these errors were encountered: