mirror of
https://github.com/discourse/discourse.git
synced 2025-02-27 19:24:11 +08:00
DEV: Remove redundant rake task.
Onceoff job created in 028121b95b982500e0c63b11d216a6162d47a7bb
This commit is contained in:
parent
077dcc0642
commit
6a274fd2cd
@ -527,17 +527,6 @@ def destroy_old_data_exports
|
|||||||
puts "done"
|
puts "done"
|
||||||
end
|
end
|
||||||
|
|
||||||
desc 'destroys all user archive PMs (they may contain broken images)'
|
|
||||||
task 'posts:destroy_old_data_exports' => :environment do
|
|
||||||
if RailsMultisite::ConnectionManagement.current_db != "default"
|
|
||||||
destroy_old_data_exports
|
|
||||||
else
|
|
||||||
RailsMultisite::ConnectionManagement.each_connection do
|
|
||||||
destroy_old_data_exports
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def recover_uploads_from_index(path)
|
def recover_uploads_from_index(path)
|
||||||
lookup = []
|
lookup = []
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user