forked from composite-primary-keys/composite_primary_keys
-
Notifications
You must be signed in to change notification settings - Fork 0
/
History.txt
320 lines (217 loc) · 9.9 KB
/
History.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
== 4.0.0.beta3 2011-07-08
* Fix the ability to update the values of a primary key (Travis Warlick)
* Support port and host configurations for postgres rake tasks (Travis Warlick)
== 4.0.0.beta2 2011-06-21
* ActiveRecord 3.1 RC4 compatibility.
* Fix instantiation of CPK models with included associations
== 4.0.0.beta1 2011-06-09
* ActiveRecord 3.1 RC1 compatibility. This required a significant rewrite due to
all the changes in AR 3.1 versus 3.0.
== 3.1.10 2011-07-08
* Bugfix for belongs_to with includes (John Ash)
* Improved tests for calling clear on a habtm association, which involved (David Rueck)
* Fixed bug that resulted in unrelated records being deleted when calling (David Rueck)
* Output deprecation warnings about extra columns in join table CPK-aware (David Rueck)
== 3.1.9 2011-06-04
* Improve HABTM association tests (David Rueck)
* Remove deprecated Rake tasks (Charlie Savage)
== 3.1.8 2011-05-26
* Fix calling clear on a HABTM associate (David Rueck)
== 3.1.7 2011-05-26
* Support regular AR models having one or many composite models (Jacques Fuentes)
* Minor test cleanup (Charlie Savage)
* Make version requirements more explicit (Charlie Savage)
* Remove Arel extensions used for calculations (Charlie Savage)
* Fix test that included wrong error constant
== 3.1.6 2011-04-03
* Updated belongs_to association to be a bit more flexible with non-CPK (Charlie Savage)
base models (Jacques Fuentes)
* Fix uniqueness check (David Rueck)
* Fix write issue when one of they keys in a composite key is
called id (Tom Hughes)
== 3.1.5 2011-03-24
* Fix simple calculation methods (Charlie Savage)
* Fix instantiation of cpk records via associations (Charlie Savage)
* Fix Relation#delete (Charlie Savage)
* Fix Relation#destroy (Charlie Savage)
== 3.1.4 2011-03-06
* Support ActiveRecord 3.0.5 - interpolate_sql was removed and
replaced by interpolate_and_sanitize_sql (Charlie Savage)
* Fix persistence methods to support destroy callbacks (Charlie Savage)
* Support rake 0.9.0 beta (Charlie Savage)
== 3.1.2 2011-02-26
* Add back in support for find('3,3') which makes it possible to
do find(params[id]). This implementation is simpler than earlier version
improving code readability.
* Support for finding multiple records either via find([1,2], [3,4])
* Remove to_composite_ids method which is no longer needed
== 3.1.1 2011-02-07
* Implement id_before_type_cast (Jason Lewis)
* Add in tests for Model.includes(:other_model)
* Fix object comparison with nil in composite primary keys (StackNG)
* Make it easier to run tests with different database adapters (Toby Cabot)
* Fix AssociationReflection#primary_key_name for polymorphic relationships (Dave Doan)
== 3.1.0 2010-12-17
* Add back in rake test tasks (Toby Cabot)
* Add support for multiple string composite keys (wouter)
* Remove support for find('3,3'). Instead use find([3,3])
== 3.0.9 2010-12-04
* Fix up support for composite key fixtures.
== 3.0.8 2010-12-04
* Fix for translation issue in unique validation. Thanks to Daniel Berger for the patch.
* Fix to support child classes of composite primary key models
== 3.0.7 2010-11-29
* Fix has and belongs to many associations implementation.
== 3.0.6 2010-11-29 (yanked)
* Add full support for has and belongs to many associations.
== 3.0.5 2010-11-28 (yanked)
* Apply patch from Marian Rudzynski for fixing up attribute_methods/primary_key
* Apply patch from Toby Cabot to fix up various sqlite3 issues
* Add partial support for has and belongs to many associations. Currently a cpk model
can have a habtm, but a normal model cannot have a habtm to a cpk model (its actually
not too hard to add, but one step at a time...)
== 3.0.4 2010-11-21
* Support deleting records when dependent is set to :delete_all
* Switch the method #id to return a CompositeKeys instance (thus going back to how
this was done in previous CPK versions)
== 3.0.3 2010-11-19
* Support ActiveRecord 3.0.3 and Arel 2+
* Require ActiveRecord 3.0.3 as minimum dependency
* Fix double quoting issue with table names - thanks to Kevin Motschiedler for a patch.
* Fix SQLiteAdapter class inheritance issue - thanks to Brandon Hauff for a patch.
== 3.0.1.b3 2010-11-07
* Fix bug in joining to :has_one association
* Added support for Model.find(:last)
* Added support for finding via associations with
limited ids. For example find(:include => :foo, :limit => 1)
== 3.0.1.b2 2010-11-06
* Port to Rails 3.0 and Ruby 1.9.2
* Backwards compatability issues
+ You can no longer define a composite primary key with a single field. If you
try, your model will just default to a standard active record model. Removing
this corner case simplified the code.
+ Removed CompositePrimaryKeys::CompositeKeys. This was done so that the #to_s
method on composite ids, such as [1,2], returns "[1, 2]". This in turns
reduces the amount of core Rails code that needs to be overridden.
+ Setting attribute values by string is no longer supported. For example, this
no longer works:
my_record[[:main_id, :secondary_id]] = '1,2'
Instead, do this:
my_record[[:main_id, :secondary_id]] = [1,2]
Once again, this was done to reduce the amount of overridden Rails code
+ At the moment, complex finds with nested arrays do not work. For example
find([[1,2], [3,4]))
+ Count methods no longer work. For example, Tariff.count(:include => :product_tariffs)
in the TestAssociations#test_count test returns an error. This is because Rails 3.0
uses Arel to perform such calculations, and its not obvious (at least to me) how to
hook into this new mechanism to support tables with composite keys.
+ The TestPolymorphic#test_polymorphic_has_many_through is currently failing, but this
looks like an ActiveRecord 3.0 bug to me.
== 2.3.5.1 2010-02-13
* Resolved "warning: already initialized constant HasManyThroughCantAssociateThroughHasManyReflection" [Titi Ala'ilima]
== 2.3.5 2009-12-16
* Fixed several bugs in has_one and has_many associations when :primary_key specified [kpumuk]
== 2.3.2 2009-07-16
* explicitly load associations.rb due to some getting an unitialized constant error
== 2.3.2 2009-05-28
* get tests working again with AR 2.3.2
== 2.2.1 2009-01-21
* fix ActiveRecord#exists? to work when passing conditions instead of ids
== 2.2.0 2008-10-29
* Rails 2.2.0 compatibility
== 1.1.0 2008-10-29
* fixes to get cpk working for Rails 2.1.2
== 1.0.10 2008-10-22
* add composite key where clause creator method [timurv]
== 1.0.9 2008-09-08
* fix postgres tests
* fix for delete_records when has_many association has composite keys [darxriggs]
* more consistent table/column name quoting [pbrant]
== 1.0.8 2008-08-27
* fix has_many :through for non composite models [thx rcarver]
== 1.0.7 2008-08-12
* fix for the last fix -- when has_many is composite and belongs_to is single
== 1.0.6 2008-08-06
* fix associations create
== 1.0.5 2008-07-25
* fix for calculations with a group by clause [thx Sirius Black]
== 1.0.4 2008-07-15
* support for oracle_enhanced adapter [thx Raimonds Simanovskis]
== 1.0.3 2008-07-13
* more fixes and tests for has many through [thx Menno van der Sman]
== 1.0.2 2008-06-07
* fix for has many through when through association has composite keys
== 1.0.1 2008-06-06
* Oracle fixes
== 1.0.0 2008-06-05
* Support for Rails 2.1
== 0.9.93 2008-06-01
* set fixed dependency on activerecord 2.0.2
== 0.9.92 2008-02-22
* Support for has_and_belongs_to_many
== 0.9.91 2008-01-27
* Incremented activerecord dependency to 2.0.2 [thx emmanuel.pirsch]
== 0.9.90 2008-01-27
* Trial release for rails/activerecord 2.0.2 supported
== 0.9.1 2007-10-28
* Migrations fix - allow :primary_key => [:name] to work [no unit test] [thx Shugo Maeda]
== 0.9.0 2007-09-28
* Added support for polymorphs [thx nerdrew]
* init.rb file so gem can be installed as a plugin for Rails [thx nerdrew]
* Added ibm_db support [thx K Venkatasubramaniyan]
* Support for cleaning dependents [thx K Venkatasubramaniyan]
* Rafactored db rake tasks into namespaces
* Added namespaced tests (e.g. mysql:test for test_mysql)
== 0.8.6 / 2007-6-12
* 1 emergency fix due to Rails Core change
* Rails v7004 removed #quote; fixed with connection.quote_column_name [thx nerdrew]
== 0.8.5 / 2007-6-5
* 1 change due to Rails Core change
* Can no longer use RAILS_CONNECTION_ADAPTERS from Rails core
* 7 dev improvement:
* Changed History.txt syntax to rdoc format
* Added deploy tasks
* Removed CHANGELOG + migrated into History.txt
* Changed PKG_NAME -> GEM_NAME in Rakefile
* Renamed README -> README.txt for :publish_docs task
* Added :check_version task
* VER => VERS in rakefile
* 1 website improvement:
* website/index.txt includes link to "8 steps to fix other ppls code"
== 0.8.4 / 2007-5-3
* 1 bugfix
* Corrected ids_list => ids in the exception message. That'll teach me for not adding unit tests before fixing bugs.
== 0.8.3 / 2007-5-3
* 1 bugfix
* Explicit reference to ::ActiveRecord::RecordNotFound
* 1 website addition:
* Added routing help [Pete Sumskas]
== 0.8.2 / 2007-4-11
* 1 major enhancement:
* Oracle unit tests!! [Darrin Holst]
* And they work too
== 0.8.1 / 2007-4-10
* 1 bug fix:
* Fixed the distinct(count) for oracle (removed 'as')
== 0.8.0 / 2007-4-6
* 1 major enhancement:
* Support for calcualtions on associations
* 2 new DB supported:
* Tests run on sqlite
* Tests run on postgresql
* History.txt to keep track of changes like these
* Using Hoe for Rakefile
* Website generator rake tasks
== 0.3.3
* id=
* create now work
== 0.1.4
* it was important that #{primary_key} for composites --> 'key1,key2' and not 'key1key2' so created PrimaryKeys class
== 0.0.1
* Initial version
* set_primary_keys(*keys) is the activation class method to transform an ActiveRecord into a composite primary key AR
* find(*ids) supports the passing of
* id sets: Foo.find(2,1),
* lists of id sets: Foo.find([2,1], [7,3], [8,12]),
* and even stringified versions of the above:
* Foo.find '2,1' or Foo.find '2,1;7,3'