mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Add two rake tasks: db:rebuild_indexes and import:remove_backup
This commit is contained in:
@@ -27,6 +27,10 @@ module Import
|
||||
$redis.del import_running_key
|
||||
end
|
||||
|
||||
def self.backup_tables_count
|
||||
User.exec_sql("select count(*) as count from information_schema.tables where table_schema = '#{Jobs::Importer::BACKUP_SCHEMA}'")[0]['count'].to_i
|
||||
end
|
||||
|
||||
|
||||
def self.clear_adapters
|
||||
@adapters = {}
|
||||
|
||||
Reference in New Issue
Block a user