Remove Gitlab::Geo::GeoTasks#refresh_foreign_tables! method

parent d9d55887
...@@ -35,24 +35,6 @@ module Gitlab ...@@ -35,24 +35,6 @@ module Gitlab
end end
end end
def refresh_foreign_tables!
sql = <<~SQL
DROP SCHEMA IF EXISTS gitlab_secondary CASCADE;
CREATE SCHEMA gitlab_secondary;
IMPORT FOREIGN SCHEMA public
FROM SERVER gitlab_secondary
INTO gitlab_secondary;
SQL
Gitlab::Geo::DatabaseTasks.with_geo_db do
ActiveRecord::Base.transaction do
ActiveRecord::Base.connection.execute(sql)
end
end
Gitlab::Geo::Fdw.expire_cache!
end
def foreign_server_configured? def foreign_server_configured?
sql = <<~SQL sql = <<~SQL
SELECT count(1) SELECT count(1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment