Skip to content
Snippets Groups Projects
Commit 094cd21c authored by Stan Hu's avatar Stan Hu
Browse files

Fix missing quote_table_name

parent cee69f89
No related branches found
No related tags found
1 merge request!5005Fix broken migration in MySQL
Loading
Loading
@@ -4,7 +4,7 @@ class RemoveDuplicatedKeys < ActiveRecord::Migration
select_all("SELECT fingerprint FROM #{quote_table_name(:keys)} GROUP BY fingerprint HAVING COUNT(*) > 1").each do |row|
fingerprint = connection.quote(row['fingerprint'])
execute(%Q{
DELETE FROM keys
DELETE FROM #{quote_table_name(:keys)}
WHERE fingerprint = #{fingerprint}
AND id != (
SELECT id FROM (
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment