liwei03
commented on issue OpenI/octopus#478
支持多个资源池和个人用户绑定
1.执行sql修复数据
update user set resource_pools='["common-pool"]' where resource_pools is null
update notebook set resource_pool = 'common-pool' where workspace_id = 'default-workspace';
update notebook as n set n.resource_pool = (select w.r_pool_id from workspace as w where n.workspace_id = w.id) where n.workspace_id != 'default-workspace';
update train_job set resource_pool = 'common-pool' where workspace_id = 'default-workspace';
update train_job as n set n.resource_pool = (select w.r_pool_id from workspace as w where n.workspace_id = w.id) where n.workspace_id != 'default-workspace';
update model_deploy set resource_pool = 'common-pool' where workspace_id = 'default-workspace';
update model_deploy as n set n.resource_pool = (select w.r_pool_id from workspace as w where n.workspace_id = w.id) where n.workspace_id != 'default-workspace';
1 month ago