Add logging to migration script

parent 9fac6586
......@@ -7,10 +7,12 @@ old_redis.keys("subscription:*").each do |old_key|
inbox_url = old_redis.hget(old_key, "inbox_url").not_nil!
new_key = "relay:#{old_key}"
new_redis.hmset(new_key, {
new_state = {
inbox_url: inbox_url,
follow_id: "",
follow_actor_id: "",
state: "Subscribed",
})
}
puts "HMSET #{new_key} #{new_state}"
new_redis.hmset(new_key, new_state)
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment