lib/baza/driver/mysql/foreign_key.rb in baza-0.0.35 vs lib/baza/driver/mysql/foreign_key.rb in baza-0.0.36
- old
+ new
@@ -9,11 +9,11 @@
@table_name = data.fetch(:TABLE_NAME)
end
def drop
@db.query("
- ALTER TABLE `#{@db.escape_table(table_name)}`
- DROP FOREIGN KEY `#{@db.escape_table(name)}`
+ ALTER TABLE #{@db.quote_table(table_name)}
+ DROP FOREIGN KEY #{@db.quote_table(name)}
")
true
end
end