kemen_foreigner 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/foreigner/schema_dumper.rb +2 -2
- metadata +2 -2
@@ -1,5 +1,6 @@
|
|
1
1
|
module Foreigner
|
2
2
|
module SchemaDumper
|
3
|
+
|
3
4
|
def self.included(base)
|
4
5
|
base.class_eval do
|
5
6
|
include InstanceMethods
|
@@ -37,8 +38,7 @@ module Foreigner
|
|
37
38
|
end
|
38
39
|
|
39
40
|
def primary_keys(table_name,stream)
|
40
|
-
if (primary_keys = @connection.pk(table_name)).any?
|
41
|
-
|
41
|
+
if (primary_keys = @connection.pk(table_name)).any? && table_name != "sysdiagrams"
|
42
42
|
add_primary_keys_statement = primary_keys.map do |primary_key|
|
43
43
|
if primary_key[:pk] != 'id'
|
44
44
|
statement_parts = [('add_primary_key ' + table_name.inspect)]
|