Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency version status badges #68

Merged
merged 2 commits into from
Nov 24, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# mysql-to-postgres - MySQL to PostgreSQL Data Translation

[![Build Status](https://travis-ci.org/maxlapshin/mysql2postgres.svg)](https://travis-ci.org/maxlapshin/mysql2postgres)
[![Dependency Status](https://gemnasium.com/maxlapshin/mysql2postgres.svg)](https://gemnasium.com/maxlapshin/mysql2postgres)

MRI or jruby supported.

With a bit of a modified rails database.yml configuration, you can integrate mysql-to-postgres into a project.
Expand Down
2 changes: 1 addition & 1 deletion lib/mysql2psql/config_base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def method_missing(name, *args)
else
value = config[token]
end
value.nil? ? ( must_be_defined ? (fail Mysql2psql::UninitializedValueError.new("no value and no default for #{name}")) : default) : value
value.nil? ? (must_be_defined ? (fail Mysql2psql::UninitializedValueError.new("no value and no default for #{name}")) : default) : value
end
end
end
4 changes: 2 additions & 2 deletions lib/mysql2psql/converter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ def initialize(reader, writer, options)

def convert
tables = reader.tables
.reject { |table| @exclude_tables.include?(table.name) }
.select { |table| @only_tables ? @only_tables.include?(table.name) : true }
.reject { |table| @exclude_tables.include?(table.name) }
.select { |table| @only_tables ? @only_tables.include?(table.name) : true }

if @preserve_order

Expand Down