activerecord-sqlserver-adapter 3.2.4 → 3.2.5
Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG
CHANGED
@@ -50,6 +50,7 @@ module ActiveRecord
|
|
50
50
|
|
51
51
|
def remove_column(table_name, *column_names)
|
52
52
|
raise ArgumentError.new("You must specify at least one column name. Example: remove_column(:people, :first_name)") if column_names.empty?
|
53
|
+
ActiveSupport::Deprecation.warn 'Passing array to remove_columns is deprecated, please use multiple arguments, like: `remove_columns(:posts, :foo, :bar)`', caller if column_names.flatten!
|
53
54
|
column_names.flatten.each do |column_name|
|
54
55
|
remove_check_constraints(table_name, column_name)
|
55
56
|
remove_default_constraint(table_name, column_name)
|
@@ -185,15 +186,15 @@ module ActiveRecord
|
|
185
186
|
AND KCU.CONSTRAINT_NAME = TC.CONSTRAINT_NAME
|
186
187
|
AND KCU.CONSTRAINT_CATALOG = TC.CONSTRAINT_CATALOG
|
187
188
|
AND KCU.CONSTRAINT_SCHEMA = TC.CONSTRAINT_SCHEMA
|
188
|
-
INNER JOIN #{
|
189
|
+
INNER JOIN #{db_name}.sys.schemas AS s
|
189
190
|
ON s.name = columns.TABLE_SCHEMA
|
190
191
|
AND s.schema_id = s.schema_id
|
191
|
-
INNER JOIN #{
|
192
|
+
INNER JOIN #{db_name}.sys.objects AS o
|
192
193
|
ON s.schema_id = o.schema_id
|
193
194
|
AND o.is_ms_shipped = 0
|
194
195
|
AND o.type IN ('U', 'V')
|
195
196
|
AND o.name = columns.TABLE_NAME
|
196
|
-
INNER JOIN #{
|
197
|
+
INNER JOIN #{db_name}.sys.columns AS c
|
197
198
|
ON o.object_id = c.object_id
|
198
199
|
AND c.name = columns.COLUMN_NAME
|
199
200
|
WHERE columns.TABLE_NAME = @0
|
metadata
CHANGED
@@ -1,15 +1,10 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-sqlserver-adapter
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 3.2.5
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 3
|
8
|
-
- 2
|
9
|
-
- 4
|
10
|
-
version: 3.2.4
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Ken Collins
|
14
9
|
- Murray Steele
|
15
10
|
- Shawn Balestracci
|
@@ -18,34 +13,25 @@ authors:
|
|
18
13
|
autorequire:
|
19
14
|
bindir: bin
|
20
15
|
cert_chain: []
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
- !ruby/object:Gem::Dependency
|
16
|
+
date: 2012-06-22 00:00:00.000000000 Z
|
17
|
+
dependencies:
|
18
|
+
- !ruby/object:Gem::Dependency
|
25
19
|
name: activerecord
|
26
|
-
|
27
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
20
|
+
requirement: &70190121497380 !ruby/object:Gem::Requirement
|
28
21
|
none: false
|
29
|
-
requirements:
|
22
|
+
requirements:
|
30
23
|
- - ~>
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
hash: 15
|
33
|
-
segments:
|
34
|
-
- 3
|
35
|
-
- 2
|
36
|
-
- 0
|
24
|
+
- !ruby/object:Gem::Version
|
37
25
|
version: 3.2.0
|
38
26
|
type: :runtime
|
39
|
-
|
27
|
+
prerelease: false
|
28
|
+
version_requirements: *70190121497380
|
40
29
|
description: SQL Server 2005 and 2008 Adapter For ActiveRecord
|
41
30
|
email: ken@metaskills.net
|
42
31
|
executables: []
|
43
|
-
|
44
32
|
extensions: []
|
45
|
-
|
46
33
|
extra_rdoc_files: []
|
47
|
-
|
48
|
-
files:
|
34
|
+
files:
|
49
35
|
- CHANGELOG
|
50
36
|
- MIT-LICENSE
|
51
37
|
- lib/active_record/connection_adapters/sqlserver/core_ext/active_record.rb
|
@@ -68,36 +54,26 @@ files:
|
|
68
54
|
- lib/arel/visitors/sqlserver.rb
|
69
55
|
homepage: http://github.com/rails-sqlserver/activerecord-sqlserver-adapter
|
70
56
|
licenses: []
|
71
|
-
|
72
57
|
post_install_message:
|
73
58
|
rdoc_options: []
|
74
|
-
|
75
|
-
require_paths:
|
59
|
+
require_paths:
|
76
60
|
- lib
|
77
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
61
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
78
62
|
none: false
|
79
|
-
requirements:
|
80
|
-
- -
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
|
83
|
-
|
84
|
-
- 0
|
85
|
-
version: "0"
|
86
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - ! '>='
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '0'
|
67
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
87
68
|
none: false
|
88
|
-
requirements:
|
89
|
-
- -
|
90
|
-
- !ruby/object:Gem::Version
|
91
|
-
|
92
|
-
segments:
|
93
|
-
- 0
|
94
|
-
version: "0"
|
69
|
+
requirements:
|
70
|
+
- - ! '>='
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '0'
|
95
73
|
requirements: []
|
96
|
-
|
97
74
|
rubyforge_project: activerecord-sqlserver-adapter
|
98
75
|
rubygems_version: 1.8.17
|
99
76
|
signing_key:
|
100
77
|
specification_version: 3
|
101
78
|
summary: SQL Server 2005 and 2008 Adapter For ActiveRecord.
|
102
79
|
test_files: []
|
103
|
-
|