File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -876,10 +876,8 @@ pub async fn permanent_delete_environment(
876876 . execute ( pool)
877877 . await ?;
878878
879- sqlx:: query ( "DELETE FROM environment_extensions WHERE environment_uuid = $1" )
880- . bind ( env_uuid)
881- . execute ( pool)
882- . await ?;
879+ // `environment_extensions` 已在扩展系统重构后移除。
880+ // 环境的扩展现在通过 user/team/group 绑定动态合并,不再需要清理环境级关联。
883881
884882 // 最后删除环境本身
885883 sqlx:: query ( "DELETE FROM environments WHERE uuid = $1" )
@@ -921,10 +919,8 @@ pub async fn batch_permanent_delete_environments(
921919 . execute ( pool)
922920 . await ?;
923921
924- sqlx:: query ( "DELETE FROM environment_extensions WHERE environment_uuid = ANY($1)" )
925- . bind ( env_uuids)
926- . execute ( pool)
927- . await ?;
922+ // `environment_extensions` 已在扩展系统重构后移除。
923+ // 环境的扩展现在通过 user/team/group 绑定动态合并,不再需要清理环境级关联。
928924
929925 // 最后删除环境本身
930926 let result = sqlx:: query ( "DELETE FROM environments WHERE uuid = ANY($1)" )
You can’t perform that action at this time.
0 commit comments