Skip to content

Commit 4d5ec77

Browse files
fix(migrate): complete data for connect_database.connect_type (#4113)
* complete connect_database.connect_type if is null * update sql
1 parent 8796da2 commit 4d5ec77

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
UPDATE connect_database
2+
SET connect_type = (
3+
SELECT cc.type FROM connect_connection cc
4+
WHERE connect_database.connection_id = cc.id
5+
)
6+
WHERE connect_type IS NULL AND type = 'PHYSICAL';

0 commit comments

Comments
 (0)