Move manifest backfill for V1 tags into the new registry model interface
This commit is contained in:
parent
95b7850c20
commit
f297249100
8 changed files with 157 additions and 45 deletions
|
@ -14,7 +14,8 @@ from flask_principal import Identity
|
|||
|
||||
from app import storage
|
||||
from data.database import (close_db_filter, configure, DerivedStorageForImage, QueueItem, Image,
|
||||
TagManifest)
|
||||
TagManifest, TagManifestToManifest, Manifest, ManifestLegacyImage,
|
||||
ManifestBlob)
|
||||
from data import model
|
||||
from endpoints.csrf import generate_csrf_token
|
||||
from util.log import logfile_path
|
||||
|
@ -107,6 +108,10 @@ def registry_server_executor(app):
|
|||
return 'OK'
|
||||
|
||||
def delete_manifests():
|
||||
ManifestLegacyImage.delete().execute()
|
||||
ManifestBlob.delete().execute()
|
||||
Manifest.delete().execute()
|
||||
TagManifestToManifest.delete().execute()
|
||||
TagManifest.delete().execute()
|
||||
return 'OK'
|
||||
|
||||
|
|
Reference in a new issue