Skip to content

Commit

Permalink
Releasing 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyalberto committed Dec 5, 2013
1 parent 81daf7d commit 8add8c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/mysql_online_migrations/mysql2_adapter_without_lock.rb
Expand Up @@ -16,7 +16,6 @@ def initialize(mysql2_adapter)
def execute(sql, name = nil) def execute(sql, name = nil)
if sql =~ OPTIMIZABLE_DDL_REGEX if sql =~ OPTIMIZABLE_DDL_REGEX
sql = "#{sql} #{lock_none_statement(sql)}" sql = "#{sql} #{lock_none_statement(sql)}"
puts "EXECUTING #{sql}"
end end
original_execute(sql, name) original_execute(sql, name)
end end
Expand All @@ -25,6 +24,7 @@ def lock_none_statement(sql)
return "" unless ActiveRecord::Base.mysql_online_migrations return "" unless ActiveRecord::Base.mysql_online_migrations
return "" if sql =~ DDL_WITH_LOCK_NONE_REGEX return "" if sql =~ DDL_WITH_LOCK_NONE_REGEX
comma_delimiter = (sql =~ DDL_WITH_COMMA_REGEX ? "," : "") comma_delimiter = (sql =~ DDL_WITH_COMMA_REGEX ? "," : "")
puts "ONLINE MIGRATION"
"#{comma_delimiter} LOCK=NONE" "#{comma_delimiter} LOCK=NONE"
end end
end end
Expand Down
2 changes: 1 addition & 1 deletion mysql_online_migrations.gemspec
@@ -1,6 +1,6 @@
Gem::Specification.new do |s| Gem::Specification.new do |s|
s.name = 'mysql_online_migrations' s.name = 'mysql_online_migrations'
s.version = '0.1.4' s.version = '1.0.0'
s.summary = "Use MySQL 5.6+ capacities to enforce online migrations" s.summary = "Use MySQL 5.6+ capacities to enforce online migrations"
s.description = "MySQL 5.6 adds a `LOCK=NONE` option to make sure migrations are done with no locking. Let's use it." s.description = "MySQL 5.6 adds a `LOCK=NONE` option to make sure migrations are done with no locking. Let's use it."
s.authors = ["Anthony Alberto"] s.authors = ["Anthony Alberto"]
Expand Down

0 comments on commit 8add8c3

Please sign in to comment.