mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
FEATURE: upload backups
This commit is contained in:
@ -71,10 +71,6 @@ module BackupRestore
|
||||
ActiveRecord::Migrator.current_version
|
||||
end
|
||||
|
||||
def self.can_rollback?
|
||||
User.exec_sql("SELECT 1 FROM pg_namespace WHERE nspname = 'backup'").count > 0
|
||||
end
|
||||
|
||||
def self.move_tables_between_schemas(source, destination)
|
||||
User.exec_sql(move_tables_between_schemas_sql(source, destination))
|
||||
end
|
||||
|
Reference in New Issue
Block a user