Permalink
Browse files

Use boolean value to check if schema_versions table exists

  • Loading branch information...
mudphone committed Dec 22, 2009
1 parent 42625d9 commit b08002c76401fd436df7c85295683ea72e86351c
Showing with 1 addition and 1 deletion.
  1. +1 −1 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?

0 comments on commit b08002c

Please sign in to comment.