Skip to content

Commit

Permalink
DEV: Skip readonly tables when remapping content (#10461)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaylorhq committed Aug 18, 2020
1 parent 24fe082 commit 33c21c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/db_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ def self.find_text_columns(excluded_tables)

DB.query(REMAP_SQL).each do |r|
next if excluded_tables.include?(r.table_name) ||
triggers.include?(Migration::BaseDropper.readonly_trigger_name(r.table_name, r.column_name))
triggers.include?(Migration::BaseDropper.readonly_trigger_name(r.table_name, r.column_name)) ||
triggers.include?(Migration::BaseDropper.readonly_trigger_name(r.table_name))

text_columns[r.table_name] << {
name: r.column_name,
Expand Down

0 comments on commit 33c21c5

Please sign in to comment.