diff --git a/script/db_timestamps_mover.rb b/script/db_timestamps_mover.rb index 62c91de6f90..44eac5ad9ac 100644 --- a/script/db_timestamps_mover.rb +++ b/script/db_timestamps_mover.rb @@ -53,6 +53,7 @@ class TimestampsUpdater JOIN information_schema.tables AS t ON c.table_name = t.table_name WHERE c.table_schema = '#{@schema}' + AND t.table_schema = '#{@schema}' AND c.data_type = '#{data_type}' AND t.table_type = 'BASE TABLE' SQL