From 500e277a8326b345854a5fc3114c1163826c1b4a Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Mon, 21 Sep 2015 00:13:58 +0200 Subject: [PATCH] Change notices during migrating --- lib/ci/migrate/tags.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ci/migrate/tags.rb b/lib/ci/migrate/tags.rb index 2bbd253f8de..2e4872f0716 100644 --- a/lib/ci/migrate/tags.rb +++ b/lib/ci/migrate/tags.rb @@ -12,10 +12,10 @@ module Ci 'WHERE (SELECT COUNT(*) FROM tags WHERE tags.name = ci_tags.name)=0' ) - puts 'Deleting old records' + puts 'Deleting old taggings...' connection.execute "DELETE FROM taggings WHERE context = 'tags' AND taggable_type LIKE 'Ci::%'" - puts 'Inserting tags...' + puts 'Inserting taggings...' connection.execute( 'INSERT INTO taggings (taggable_type, taggable_id, tag_id, context) ' + "SELECT CONCAT('Ci::', ci_taggings.taggable_type), ci_taggings.taggable_id, tags.id, 'tags' FROM ci_taggings " +