|
|
|
|
Changelog for ruby3.1-rubygem-activerecord-5_1-5.1.7-20.74.x86_64.rpm :
* Fri Mar 29 2019 Stephan Kulow - updated to version 5.1.7 see installed CHANGELOG.md [#]# Rails 5.1.7 (March 27, 2019) ## * Fix `touch` option to behave consistently with `Persistence#touch` method. * Ryuta Kamizono * * Back port Rails 5.2 `reverse_order` Arel SQL literal fix. * Matt Jones *, *Brooke Kuhlmann * * `becomes` should clear the mutation tracker which is created in `after_initialize`. Fixes #32867. * Ryuta Kamizono * * Thu Mar 14 2019 Stephan Kulow - updated to version 5.1.6.2 see installed CHANGELOG.md [#]# Rails 5.1.6.2 (March 11, 2019) ## * No changes. * Sat Dec 08 2018 Stephan Kulow - updated to version 5.1.6.1 see installed CHANGELOG.md [#]# Rails 5.1.6.1 (November 27, 2018) ## * No changes. * Fri Mar 30 2018 factory-autoAATTkulow.org- updated to version 5.1.6 see installed CHANGELOG.md [#]# Rails 5.1.6 (March 29, 2018) ## * MySQL: Support mysql2 0.5.x. * Aaron Stone * * Apply time column precision on assignment. PR #20317 changed the behavior of datetime columns so that when they have a specified precision then on assignment the value is rounded to that precision. This behavior is now applied to time columns as well. Fixes #30301. * Andrew White * * Normalize time column values for SQLite database. For legacy reasons, time columns in SQLite are stored as full datetimes because until #24542 the quoting for time columns didn\'t remove the date component. To ensure that values are consistent we now normalize the date component to 2001-01-01 on reading and writing. * Andrew White * * Ensure that the date component is removed when quoting times. PR #24542 altered the quoting for time columns so that the date component was removed however it only removed it when it was 2001-01-01. Now the date component is removed irrespective of what the date is. * Andrew White * * Fix that after commit callbacks on update does not triggered when optimistic locking is enabled. * Ryuta Kamizono * * `ActiveRecord::Persistence#touch` does not work well when optimistic locking enabled and `locking_column`, without default value, is null in the database. * bogdanvlviv * * Fix destroying existing object does not work well when optimistic locking enabled and `locking column` is null in the database. * bogdanvlviv * * Thu Feb 15 2018 factory-autoAATTkulow.org- updated to version 5.1.5 see installed CHANGELOG.md [#]# Rails 5.1.5 (February 14, 2018) ## * Fix `count(:all)` with eager loading and having an order other than the driving table. Fixes #31783. * Ryuta Kamizono * * Use `count(:all)` in `HasManyAssociation#count_records` to prevent invalid SQL queries for association counting. * Klas Eskilson * * Fix to invoke callbacks when using `update_attribute`. * Mike Busch * * Fix `count(:all)` to correctly work `distinct` with custom SELECT list. * Ryuta Kamizono * * Fix conflicts `counter_cache` with `touch: true` by optimistic locking. ``` [#] create_table :posts do |t| [#] t.integer :comments_count, default: 0 [#] t.integer :lock_version [#] t.timestamps [#] end class Post < ApplicationRecord end [#] create_table :comments do |t| [#] t.belongs_to :post [#] end class Comment < ApplicationRecord belongs_to :post, touch: true, counter_cache: true end ``` Before: ``` post = Post.create! [#] => begin transaction INSERT INTO \"posts\" (\"created_at\", \"updated_at\", \"lock_version\") VALUES (\"2017-12-11 21:27:11.387397\", \"2017-12-11 21:27:11.387397\", 0) commit transaction comment = Comment.create!(post: post) [#] => begin transaction INSERT INTO \"comments\" (\"post_id\") VALUES (1) UPDATE \"posts\" SET \"comments_count\" = COALESCE(\"comments_count\", 0) + 1, \"lock_version\" = COALESCE(\"lock_version\", 0) + 1 WHERE \"posts\".\"id\" = 1 UPDATE \"posts\" SET \"updated_at\" = \'2017-12-11 21:27:11.398330\', \"lock_version\" = 1 WHERE \"posts\".\"id\" = 1 AND \"posts\".\"lock_version\" = 0 rollback transaction [#] => ActiveRecord::StaleObjectError: Attempted to touch a stale object: Post. Comment.take.destroy! [#] => begin transaction DELETE FROM \"comments\" WHERE \"comments\".\"id\" = 1 UPDATE \"posts\" SET \"comments_count\" = COALESCE(\"comments_count\", 0) - 1, \"lock_version\" = COALESCE(\"lock_version\", 0) + 1 WHERE \"posts\".\"id\" = 1 UPDATE \"posts\" SET \"updated_at\" = \'2017-12-11 21:42:47.785901\', \"lock_version\" = 1 WHERE \"posts\".\"id\" = 1 AND \"posts\".\"lock_version\" = 0 rollback transaction [#] => ActiveRecord::StaleObjectError: Attempted to touch a stale object: Post. ``` After: ``` post = Post.create! [#] => begin transaction INSERT INTO \"posts\" (\"created_at\", \"updated_at\", \"lock_version\") VALUES (\"2017-12-11 21:27:11.387397\", \"2017-12-11 21:27:11.387397\", 0) commit transaction comment = Comment.create!(post: post) [#] => begin transaction INSERT INTO \"comments\" (\"post_id\") VALUES (1) UPDATE \"posts\" SET \"comments_count\" = COALESCE(\"comments_count\", 0) + 1, \"lock_version\" = COALESCE(\"lock_version\", 0) + 1, \"updated_at\" = \'2017-12-11 21:37:09.802642\' WHERE \"posts\".\"id\" = 1 commit transaction comment.destroy! [#] => begin transaction DELETE FROM \"comments\" WHERE \"comments\".\"id\" = 1 UPDATE \"posts\" SET \"comments_count\" = COALESCE(\"comments_count\", 0) - 1, \"lock_version\" = COALESCE(\"lock_version\", 0) + 1, \"updated_at\" = \'2017-12-11 21:39:02.685520\' WHERE \"posts\".\"id\" = 1 commit transaction ``` Fixes #31199. * bogdanvlviv * * Query cache was unavailable when entering the `ActiveRecord::Base.cache` block without being connected. * Tsukasa Oishi * * Fix `bin/rails db:setup` and `bin/rails db:test:prepare` create wrong ar_internal_metadata\'s data for a test database. Before: ``` $ RAILS_ENV=test rails dbconsole > SELECT * FROM ar_internal_metadata; key|value|created_at|updated_at environment|development|2017-09-11 23:14:10.815679|2017-09-11 23:14:10.815679 ``` After: ``` $ RAILS_ENV=test rails dbconsole > SELECT * FROM ar_internal_metadata; key|value|created_at|updated_at environment|test|2017-09-11 23:14:10.815679|2017-09-11 23:14:10.815679 ``` Fixes #26731. * bogdanvlviv * * Fix longer sequence name detection for serial columns. Fixes #28332. * Ryuta Kamizono * * MySQL: Don\'t lose `auto_increment: true` in the `db/schema.rb`. Fixes #30894. * Ryuta Kamizono * * Fix `COUNT(DISTINCT ...)` for `GROUP BY` with `ORDER BY` and `LIMIT`. Fixes #30886. * Ryuta Kamizono * * Mon Nov 20 2017 mrueckertAATTsuse.de- disable rdoc for now https://github.com/rails/rails/commit/8dd76a7a6ff1bb7105beabb8f834ca54ab1e5fc2 * Mon Sep 11 2017 enavarroAATTsuse.com- Update to version 5.1.4 * Wed Aug 09 2017 cbruckmayerAATTsuse.com- Update to version 5.1.3 * Sat Jun 24 2017 adrianAATTsuse.de- update to version 5.1.1 * Mon Mar 06 2017 adrianAATTsuse.de- fix db_runtime logging
|
|
|