Skip to content

Commit

Permalink
Use boolean value to check if schema_versions table exists
Browse files Browse the repository at this point in the history
  • Loading branch information
mudphone committed Dec 22, 2009
1 parent 42625d9 commit b08002c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hbase_migrations/hbase_connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit b08002c

Please sign in to comment.