Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use boolean value to check if schema_versions table exists

  • Loading branch information...
commit b08002c76401fd436df7c85295683ea72e86351c 1 parent 42625d9
@mudphone mudphone authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/hbase_migrations/hbase_connection.rb
View
2  lib/hbase_migrations/hbase_connection.rb
@@ -19,7 +19,7 @@ def update_schema_version(user,env,new_version)
def initialize_schema_information(user,env)
admin = HbaseAdmin.new(@server)
- admin.create('schema_versions','version') unless admin.exists('schema_versions') == 'true'
+ admin.create('schema_versions','version') unless admin.exists('schema_versions')
table = HbaseTable.new(@configuration,'schema_versions')
table.put("#{user}:#{env}", "version:", '0') if table.get("#{user}:#{env}").empty?
Please sign in to comment.
Something went wrong with that request. Please try again.