|
1 | | -## v5.0.6 |
| 1 | +## v5.1.0 |
2 | 2 |
|
3 | 3 | #### Fixed |
4 | 4 |
|
5 | | -* Performance w/inserts. Check binds & use schema cache for id inserts. |
6 | | - Fixes #572. Thanks @noelr. |
7 | | -* Add smalldatetime type for migrations. Fixes #507 |
8 | | - |
9 | | -#### Changed |
10 | | - |
11 | | -* Misc index enhancements or testing. Fixes #570 |
12 | | - Enable `supports_index_sort_order?`, test `supports_partial_index?`, test how expression indexes work. |
13 | | - |
14 | | -#### Added |
15 | | - |
16 | | -* New `primary_key_nonclustered` type for easy In-Memory table creation. |
17 | | -* Examples for an In-Memory table. |
18 | | - |
19 | | -```ruby |
20 | | -create_table :in_memory_table, id: false, |
21 | | - options: 'WITH (MEMORY_OPTIMIZED = ON, DURABILITY = SCHEMA_AND_DATA)' do |t| |
22 | | - t.primary_key_nonclustered :id |
23 | | - t.string :name |
24 | | - t.timestamps |
25 | | -end |
26 | | -``` |
27 | | - |
28 | | -* Enable supports_json? Fixes #577. |
29 | | - |
30 | | -```ruby |
31 | | -create_table :users do |t| |
32 | | - t.string :name, :email |
33 | | - t.json :data # Creates a nvarchar(max) column. |
34 | | - end |
35 | | - |
36 | | -class Users < ActiveRecord::Base |
37 | | - attribute :data, ActiveRecord::Type::SQLServer::Json.new |
38 | | -end |
39 | | - |
40 | | -User.create! name: 'Ken Collins', data: { 'admin' => true, 'foo' => 'bar' } |
41 | | - |
42 | | -admin = User.where("JSON_VALUE(data, '$.admin') = CAST(1 AS BIT)").first |
43 | | -admin.data['foo'] # => "bar" |
44 | | -``` |
45 | | - |
46 | | - |
47 | | -## v5.0.5 |
48 | | - |
49 | | -#### Changed |
50 | | - |
51 | | -* Add TinyTDS as a runtime dependency. |
52 | | - |
53 | | - |
54 | | -## v5.0.4 |
55 | | - |
56 | | -#### Fixed |
57 | | - |
58 | | -* Allow `datetimeoffset` to be used in migrations and represented in schema. |
59 | | -* Using transactions and resetting isolation level correctly when `READ_COMMITTED_SNAPSHOT` is set to `ON` Fixes #520 |
60 | | - |
61 | | - |
62 | | -## v5.0.3 |
63 | | - |
64 | 5 | #### Changed |
65 | 6 |
|
66 | | -* Reduce view information reflection to per table vs. column. Fixes #552 |
67 | | -* The `user_options` parsing. Works for hash/array. Fixes #535 |
68 | | -* Pass the `:contained` option to TinyTDS. Fixes #527 |
69 | | - |
70 | | - |
71 | | -## v5.0.2 |
72 | | - |
73 | | -#### Fixed |
74 | | - |
75 | | -* Filter table constraints with matching table schema to column. Fixes #478 |
76 | | - |
77 | | - |
78 | | -## v5.0.1 |
79 | | - |
80 | | -#### Changed |
81 | | - |
82 | | -* Set `tds_version` fallback to `7.3`. |
83 | | - |
84 | | -#### Fixed |
85 | | - |
86 | | -* Support 2014, 2012 drop table statement. |
87 | | - |
88 | | - |
89 | | -## v5.0.0 |
90 | | - |
91 | 7 | #### Added |
92 | 8 |
|
93 | | -* Support for `supports_datetime_with_precision`. |
94 | | -* Support for `unprepared_statement` blocks on the connection. |
95 | | - |
96 | | -#### Changed |
97 | | - |
98 | | -* Major refactoring of all type objects. Especially time types. |
99 | | - |
100 | | -#### Deprecated |
101 | | - |
102 | | -* Support for a handful of standard Rails deprecations in 5-0-stable suite. |
103 | | - |
104 | | -#### Removed |
105 | | - |
106 | | -* ODBC connection mode. Not been maintained since Rails 4.0. |
107 | | -* View table name detection in `with_identity_insert_enabled` method for fixtures. Perf hit. |
108 | | - |
109 | | -#### Fixed |
110 | 9 |
|
111 | | -* Do not output column collation in schema when same as database. |
0 commit comments