Skip to content

Commit

Permalink
fixup! Properly find views by name
Browse files Browse the repository at this point in the history
  • Loading branch information
calebhearth committed Mar 5, 2024
1 parent 0ca5ffb commit 3a2ddcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/scenic/schema_dumper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ def tsorted_views(views_names)
::Scenic.database.execute(DEPENDENT_SQL).each do |relation|
source_v = [
relation["source_schema"],
relation["source_table"],
relation["source_table"]
].compact.join(".")
dependent = [
relation["dependent_schema"],
relation["dependent_view"],
relation["dependent_view"]
].compact.join(".")
views_hash[dependent] ||= []
views_hash[source_v] ||= []
Expand Down

0 comments on commit 3a2ddcc

Please sign in to comment.