frac-foreigner 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -14,12 +14,12 @@ module Foreigner
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def add_primary_key(table,options)
|
17
|
-
constraint_name = "pk_#{table}
|
17
|
+
constraint_name = "pk_#{table}}"
|
18
18
|
execute "ALTER TABLE #{table} ADD CONSTRAINT #{constraint_name} PRIMARY KEY (#{options[:column]})"
|
19
19
|
end
|
20
20
|
|
21
21
|
def remove_primary_key(table, options)
|
22
|
-
constraint_name = "pk_#{table}
|
22
|
+
constraint_name = "pk_#{table}}"
|
23
23
|
execute "ALTER TABLE #{table} DROP CONSTRAINT #{constraint_name}"
|
24
24
|
end
|
25
25
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: frac-foreigner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,9 +9,10 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-04-
|
12
|
+
date: 2011-04-06 00:00:00.000000000Z
|
13
13
|
dependencies: []
|
14
|
-
description:
|
14
|
+
description: Foreigner adapted to SQLServer and with natural primay key support for
|
15
|
+
schema dumper and migrations
|
15
16
|
email: ''
|
16
17
|
executables: []
|
17
18
|
extensions: []
|
@@ -30,7 +31,7 @@ files:
|
|
30
31
|
- lib/frac-foreigner.rb
|
31
32
|
- test/mysql_adapter_test.rb
|
32
33
|
- test/helper.rb
|
33
|
-
homepage:
|
34
|
+
homepage: http://www.kemen.it
|
34
35
|
licenses: []
|
35
36
|
post_install_message:
|
36
37
|
rdoc_options: []
|
@@ -53,5 +54,6 @@ rubyforge_project: frac-foreigner
|
|
53
54
|
rubygems_version: 1.7.1
|
54
55
|
signing_key:
|
55
56
|
specification_version: 3
|
56
|
-
summary: Foreigner adapted to SQLServer and with
|
57
|
+
summary: Foreigner adapted to SQLServer and with natural primay key support for schema
|
58
|
+
dumper and migrations
|
57
59
|
test_files: []
|