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.
Files changed (2) hide show
  1. data/lib/foreigner/schema_dumper.rb +2 -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)]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 3
9
- version: 0.0.3
8
+ - 4
9
+ version: 0.0.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Cloned by Matthew Higgins