mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
DEV: Store details log entries in converter as JSON (#29778)
Plus small DB related fixes
This commit is contained in:
@ -21,12 +21,14 @@ module Migrations::Database
|
||||
migrate_from_path(@migrations_path, performed_migrations)
|
||||
|
||||
@db.close
|
||||
nil
|
||||
end
|
||||
|
||||
def reset!
|
||||
[@db_path, "#{@db_path}-wal", "#{@db_path}-shm"].each do |path|
|
||||
FileUtils.remove_file(path, force: true) if File.exist?(path)
|
||||
end
|
||||
nil
|
||||
end
|
||||
|
||||
private
|
||||
|
Reference in New Issue
Block a user