diff --git a/server/odc-migrate/src/main/resources/migrate/common/V_4_3_3_6__complete_connect_database.sql b/server/odc-migrate/src/main/resources/migrate/common/V_4_3_3_6__complete_connect_database.sql index 60d45e4a25..6c3a76cb56 100644 --- a/server/odc-migrate/src/main/resources/migrate/common/V_4_3_3_6__complete_connect_database.sql +++ b/server/odc-migrate/src/main/resources/migrate/common/V_4_3_3_6__complete_connect_database.sql @@ -1,4 +1,6 @@ -UPDATE connect_database AS cd -JOIN connect_connection AS cc ON cd.connection_id = cc.id -SET cd.connect_type = cc.type -WHERE cd.connect_type IS NULL AND cd.type = 'PHYSICAL'; \ No newline at end of file +UPDATE connect_database +SET connect_type = ( + SELECT cc.type FROM connect_connection cc + WHERE connect_database.connection_id = cc.id + ) +WHERE connect_type IS NULL AND type = 'PHYSICAL'; \ No newline at end of file