mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-15 23:05:57 +01:00
74dfc905ec
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>
2 lines
163 B
SQL
2 lines
163 B
SQL
/* 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); |