mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-22 10:15:35 +01:00
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
2
make/migrations/postgresql/0110_2.8.0_schema.up.sql
Normal file
2
make/migrations/postgresql/0110_2.8.0_schema.up.sql
Normal file
@ -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
Block a user