mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-25 12:34:58 +01:00
Minor phrasing on tootcli statuses remove (#30122)
This commit is contained in:
parent
f5376c477d
commit
40d7a553d2
@ -191,24 +191,24 @@ module Mastodon::CLI
|
|||||||
|
|
||||||
def vacuum_and_analyze_statuses
|
def vacuum_and_analyze_statuses
|
||||||
if options[:compress_database]
|
if options[:compress_database]
|
||||||
say('Run VACUUM FULL ANALYZE to statuses...')
|
say('Running "VACUUM FULL ANALYZE statuses"...')
|
||||||
ActiveRecord::Base.connection.execute('VACUUM FULL ANALYZE statuses')
|
ActiveRecord::Base.connection.execute('VACUUM FULL ANALYZE statuses')
|
||||||
say('Run REINDEX to statuses...')
|
say('Running "REINDEX TABLE statuses"...')
|
||||||
ActiveRecord::Base.connection.execute('REINDEX TABLE statuses')
|
ActiveRecord::Base.connection.execute('REINDEX TABLE statuses')
|
||||||
else
|
else
|
||||||
say('Run ANALYZE to statuses...')
|
say('Running "ANALYZE statuses"...')
|
||||||
ActiveRecord::Base.connection.execute('ANALYZE statuses')
|
ActiveRecord::Base.connection.execute('ANALYZE statuses')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def vacuum_and_analyze_conversations
|
def vacuum_and_analyze_conversations
|
||||||
if options[:compress_database]
|
if options[:compress_database]
|
||||||
say('Run VACUUM FULL ANALYZE to conversations...')
|
say('Running "VACUUM FULL ANALYZE conversations"...')
|
||||||
ActiveRecord::Base.connection.execute('VACUUM FULL ANALYZE conversations')
|
ActiveRecord::Base.connection.execute('VACUUM FULL ANALYZE conversations')
|
||||||
say('Run REINDEX to conversations...')
|
say('Running "REINDEX TABLE conversations"...')
|
||||||
ActiveRecord::Base.connection.execute('REINDEX TABLE conversations')
|
ActiveRecord::Base.connection.execute('REINDEX TABLE conversations')
|
||||||
else
|
else
|
||||||
say('Run ANALYZE to conversations...')
|
say('Running "ANALYZE conversations"...')
|
||||||
ActiveRecord::Base.connection.execute('ANALYZE conversations')
|
ActiveRecord::Base.connection.execute('ANALYZE conversations')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user