mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 21:54:01 +08:00
parent
73f178a634
commit
5fdc7b7ca2
|
@ -245,9 +245,9 @@ def migration_successful?(db, should_raise = false)
|
||||||
|
|
||||||
count = Post.where('baked_version <> ? OR baked_version IS NULL', Post::BAKED_VERSION).count
|
count = Post.where('baked_version <> ? OR baked_version IS NULL', Post::BAKED_VERSION).count
|
||||||
if count > 0
|
if count > 0
|
||||||
puts "No posts require rebaking"
|
|
||||||
else
|
|
||||||
puts "#{count} posts still require rebaking and will be rebaked during regular job"
|
puts "#{count} posts still require rebaking and will be rebaked during regular job"
|
||||||
|
else
|
||||||
|
puts "No posts require rebaking"
|
||||||
end
|
end
|
||||||
|
|
||||||
success
|
success
|
||||||
|
|
Loading…
Reference in New Issue
Block a user