mirror of
https://github.com/discourse/discourse.git
synced 2025-06-10 17:13:48 +08:00
Fix defect db migration
Follow-up to fc999c04b34edb93cb3538718bcd22d295509a4a
This commit is contained in:
@ -2,17 +2,6 @@ require 'migration/table_dropper'
|
|||||||
|
|
||||||
class DropUnusedAuthTables < ActiveRecord::Migration[5.2]
|
class DropUnusedAuthTables < ActiveRecord::Migration[5.2]
|
||||||
def change
|
def change
|
||||||
def up
|
# this migration was defect
|
||||||
%i{
|
|
||||||
facebook_user_infos
|
|
||||||
twitter_user_infos
|
|
||||||
}.each do |table|
|
|
||||||
Migration::TableDropper.execute_drop(table)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def down
|
|
||||||
raise ActiveRecord::IrreversibleMigration
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -0,0 +1,16 @@
|
|||||||
|
require 'migration/table_dropper'
|
||||||
|
|
||||||
|
class DropUnusedAuthTablesAgain < ActiveRecord::Migration[5.2]
|
||||||
|
def up
|
||||||
|
%i{
|
||||||
|
facebook_user_infos
|
||||||
|
twitter_user_infos
|
||||||
|
}.each do |table|
|
||||||
|
Migration::TableDropper.execute_drop(table)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def down
|
||||||
|
raise ActiveRecord::IrreversibleMigration
|
||||||
|
end
|
||||||
|
end
|
Reference in New Issue
Block a user