attempt all column dropping upfront prior to loading cache
This commit is contained in:
parent
e031b06afa
commit
799081e846
|
@ -1,6 +1,7 @@
|
||||||
# Delayed migration steps
|
# Delayed migration steps
|
||||||
|
|
||||||
require 'migration/table_dropper'
|
require 'migration/table_dropper'
|
||||||
|
require 'migration/column_dropper'
|
||||||
|
|
||||||
Migration::ColumnDropper.drop(
|
Migration::ColumnDropper.drop(
|
||||||
table: 'user_profiles',
|
table: 'user_profiles',
|
||||||
|
@ -182,6 +183,3 @@ Migration::TableDropper.delayed_drop(
|
||||||
|
|
||||||
STDERR.puts "Resetting Active Record Cache"
|
STDERR.puts "Resetting Active Record Cache"
|
||||||
Discourse.reset_active_record_cache
|
Discourse.reset_active_record_cache
|
||||||
ActiveRecord::Base.connection.close
|
|
||||||
# for some reason connection tables may be off?
|
|
||||||
User.reset_column_information
|
|
Loading…
Reference in New Issue