activerecord-sqlserver-adapter 4.1.2 → 4.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2aff8a19f314ccd47622f29062424a2e5861d461
4
- data.tar.gz: 526354fa1b7fc5d5541faf5969271b382496e036
3
+ metadata.gz: b851975c88c2b2810d1f45ee1b9ee0b8dc9b46d1
4
+ data.tar.gz: 41f1bf0aafd2ebe9437b628654883124c41bfef2
5
5
  SHA512:
6
- metadata.gz: 04f08979a27e30512681a761f6aaa223ef2478c229bc3e5c907b49d5558f2c63d254acd7d345f1f167890f2d9753512ce9f8be97bb720308af8c3c6fdc2a286d
7
- data.tar.gz: d12b9ff03cb4d131eaa7a9f141fa7c33c96a854c83c1a8cd9af1b8d41167495cd397c9fc5d102f0c15602e409a6f95a83099ad326274b894054193a2764e2686
6
+ metadata.gz: 55213f6889c0842689a286835cb48186e857c89ecf1b45a1a3a284bbbec7afa5c5c711d849a80f2454ead1d930250028f51b4e2570c4825bd343f9eaa1d0c32a
7
+ data.tar.gz: 4daa2a36923f7cc8b0684380bbb1a7fbd94b0389b7c640d149c109a3e2f0b38329fc4565b8f816e3de1a5b44883ab9811468ca87e0cb6414feda8e95f6fb10f8
data/CHANGELOG CHANGED
@@ -1,4 +1,14 @@
1
1
 
2
+ ## v4.1.4
3
+
4
+ * Added 2016 to supported list.
5
+
6
+ ## v4.1.3
7
+
8
+ #### Fixed
9
+
10
+ * Partial indexes using `:where` in schema dumper. Fixes #153
11
+
2
12
 
3
13
  ## v4.1.2
4
14
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.1.2
1
+ 4.1.4
@@ -31,12 +31,13 @@ module ActiveRecord
31
31
  else
32
32
  name = index[:index_name]
33
33
  unique = index[:index_description] =~ /unique/
34
+ where = select_value("SELECT [filter_definition] FROM sys.indexes WHERE name = #{quote(name)}")
34
35
  columns = index[:index_keys].split(',').map do |column|
35
36
  column.strip!
36
37
  column.gsub! '(-)', '' if column.ends_with?('(-)')
37
38
  column
38
39
  end
39
- indexes << IndexDefinition.new(table_name, name, unique, columns)
40
+ indexes << IndexDefinition.new(table_name, name, unique, columns, nil, nil, where)
40
41
  end
41
42
  end
42
43
  end
@@ -37,7 +37,7 @@ module ActiveRecord
37
37
  VERSION = File.read(File.expand_path('../../../../VERSION', __FILE__)).strip
38
38
  ADAPTER_NAME = 'SQLServer'.freeze
39
39
  DATABASE_VERSION_REGEXP = /Microsoft SQL Server\s+"?(\d{4}|\w+)"?/
40
- SUPPORTED_VERSIONS = [2005, 2008, 2010, 2011, 2012, 2014]
40
+ SUPPORTED_VERSIONS = [2005, 2008, 2010, 2011, 2012, 2014, 2016]
41
41
 
42
42
  attr_reader :database_version, :database_year, :spid, :product_level, :product_version, :edition
43
43
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-sqlserver-adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.2
4
+ version: 4.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Collins
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2015-11-08 00:00:00.000000000 Z
17
+ date: 2016-10-20 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: activerecord
@@ -98,8 +98,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  version: '0'
99
99
  requirements: []
100
100
  rubyforge_project: activerecord-sqlserver-adapter
101
- rubygems_version: 2.4.8
101
+ rubygems_version: 2.4.5.1
102
102
  signing_key:
103
103
  specification_version: 4
104
104
  summary: ActiveRecord SQL Server Adapter. For SQL Server 2005 And Higher.
105
105
  test_files: []
106
+ has_rdoc: