Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
c93e01fa
Commit
c93e01fa
authored
Aug 05, 2020
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove Gitlab::Geo::Fdw.foreign_tables_up_to_date? method
parent
1b4093d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
22 deletions
+0
-22
ee/lib/gitlab/geo/fdw.rb
ee/lib/gitlab/geo/fdw.rb
+0
-4
ee/spec/lib/gitlab/geo/fdw_spec.rb
ee/spec/lib/gitlab/geo/fdw_spec.rb
+0
-18
No files found.
ee/lib/gitlab/geo/fdw.rb
View file @
c93e01fa
...
...
@@ -30,10 +30,6 @@ module Gitlab
FOREIGN_SCHEMA
+
".
#{
table_name
}
"
end
def
foreign_tables_up_to_date?
has_foreign_schema?
&&
foreign_schema_tables_match?
end
# Number of existing tables
#
# @return [Integer] number of tables
...
...
ee/spec/lib/gitlab/geo/fdw_spec.rb
View file @
c93e01fa
...
...
@@ -101,24 +101,6 @@ RSpec.describe Gitlab::Geo::Fdw, :geo do
end
end
describe
'.foreign_tables_up_to_date?'
do
it
'returns false when foreign schema does not exist'
do
drop_foreign_schema
expect
(
described_class
.
foreign_tables_up_to_date?
).
to
eq
false
end
it
'returns false when foreign schema exists but tables in schema doesnt match'
do
create_foreign_table
(
:gitlab_test
)
expect
(
described_class
.
foreign_tables_up_to_date?
).
to
eq
false
end
it
'returns true when foreign schema exists and foreign schema has same tables as secondary database'
do
expect
(
described_class
.
foreign_tables_up_to_date?
).
to
eq
true
end
end
describe
'.foreign_schema_tables_count'
do
before
do
drop_foreign_schema
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment