Skip to content

Commit

Permalink
fix(migrate): complete data for connect_database.connect_type (#4113)
Browse files Browse the repository at this point in the history
* complete connect_database.connect_type if is null

* update sql
  • Loading branch information
MarkPotato777 authored Jan 2, 2025
1 parent 8796da2 commit 4d5ec77
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
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';

0 comments on commit 4d5ec77

Please sign in to comment.