Skip to content

A platform for community discussion. Free, open, simple.

DEV: fix joining in the script for moving timestamps (#13721)

Andrei Prigorshnev7fe3e4bab874
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