mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Cleanup invalid historic site setting data (#17049)
`selectable_avatars_urls` contains invalid data (it's a backup from 20200810194943_change_selectable_avatars_site_setting.rb) This migration is deliberately backdated so that it runs before `20220330160747_copy_site_settings_uploads_to_upload_references`
This commit is contained in:
parent
20f118c4c9
commit
002d62b847
15
db/migrate/20220330160740_cleanup_selectable_avatars_data.rb
Normal file
15
db/migrate/20220330160740_cleanup_selectable_avatars_data.rb
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
class CleanupSelectableAvatarsData < ActiveRecord::Migration[7.0]
|
||||||
|
def up
|
||||||
|
# This setting is invalid (a backup from 20200810194943_change_selectable_avatars_site_setting.rb)
|
||||||
|
execute <<~SQL
|
||||||
|
DELETE FROM site_settings
|
||||||
|
WHERE name = 'selectable_avatars_urls'
|
||||||
|
SQL
|
||||||
|
end
|
||||||
|
|
||||||
|
def down
|
||||||
|
raise ActiveRecord::IrreversibleMigration
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue
Block a user