mirror of https://github.com/goharbor/harbor.git
remove the redundant data from table artifact_blob (#17937)
use sql in the migration process to delete all the useless data of table artifact_blob Signed-off-by: Wang Yan <wangyan@vmware.com> Signed-off-by: Wang Yan <wangyan@vmware.com>
This commit is contained in:
parent
86e34c8e59
commit
74dfc905ec
|
@ -0,0 +1,2 @@
|
|||
/* remove the redundant data from table artifact_blob */
|
||||
delete from artifact_blob afb where not exists (select digest from blob b where b.digest = afb.digest_af);
|
Loading…
Reference in New Issue