1
- # Generated by Django 2 .2.7 on 2019-11-08 12 :23
1
+ # Generated by Django 4 .2.16 on 2025-01-14 20 :23
2
2
3
3
import django .contrib .postgres .fields
4
4
from django .db import migrations , models
@@ -10,14 +10,14 @@ class Migration(migrations.Migration):
10
10
initial = True
11
11
12
12
dependencies = [
13
- ('core' , '0012_auto_20191104_2000 ' ),
13
+ ('core' , '0091_systemid ' ),
14
14
]
15
15
16
16
operations = [
17
17
migrations .CreateModel (
18
18
name = 'Blob' ,
19
19
fields = [
20
- ('content_ptr' , models .OneToOneField (auto_created = True , on_delete = django .db .models .deletion .CASCADE , parent_link = True , primary_key = True , related_name = 'container_blob' , serialize = False , to = 'core.Content ' )),
20
+ ('content_ptr' , models .OneToOneField (auto_created = True , on_delete = django .db .models .deletion .CASCADE , parent_link = True , primary_key = True , related_name = 'container_blob' , serialize = False , to = 'core.content ' )),
21
21
('digest' , models .CharField (db_index = True , max_length = 255 )),
22
22
('media_type' , models .CharField (choices = [('application/vnd.docker.container.image.v1+json' , 'application/vnd.docker.container.image.v1+json' ), ('application/vnd.docker.image.rootfs.diff.tar.gzip' , 'application/vnd.docker.image.rootfs.diff.tar.gzip' ), ('application/vnd.docker.image.rootfs.foreign.diff.tar.gzip' , 'application/vnd.docker.image.rootfs.foreign.diff.tar.gzip' )], max_length = 80 )),
23
23
],
@@ -36,7 +36,7 @@ class Migration(migrations.Migration):
36
36
migrations .CreateModel (
37
37
name = 'ContainerRemote' ,
38
38
fields = [
39
- ('remote_ptr' , models .OneToOneField (auto_created = True , on_delete = django .db .models .deletion .CASCADE , parent_link = True , primary_key = True , related_name = 'container_containerremote' , serialize = False , to = 'core.Remote ' )),
39
+ ('remote_ptr' , models .OneToOneField (auto_created = True , on_delete = django .db .models .deletion .CASCADE , parent_link = True , primary_key = True , related_name = 'container_containerremote' , serialize = False , to = 'core.remote ' )),
40
40
('upstream_name' , models .CharField (db_index = True , max_length = 255 )),
41
41
('include_foreign_layers' , models .BooleanField (default = False )),
42
42
('whitelist_tags' , django .contrib .postgres .fields .ArrayField (base_field = models .CharField (max_length = 255 , null = True ), null = True , size = None )),
@@ -49,12 +49,12 @@ class Migration(migrations.Migration):
49
49
migrations .CreateModel (
50
50
name = 'Manifest' ,
51
51
fields = [
52
- ('content_ptr' , models .OneToOneField (auto_created = True , on_delete = django .db .models .deletion .CASCADE , parent_link = True , primary_key = True , related_name = 'container_manifest' , serialize = False , to = 'core.Content ' )),
52
+ ('content_ptr' , models .OneToOneField (auto_created = True , on_delete = django .db .models .deletion .CASCADE , parent_link = True , primary_key = True , related_name = 'container_manifest' , serialize = False , to = 'core.content ' )),
53
53
('digest' , models .CharField (db_index = True , max_length = 255 )),
54
54
('schema_version' , models .IntegerField ()),
55
55
('media_type' , models .CharField (choices = [('application/vnd.docker.distribution.manifest.v1+json' , 'application/vnd.docker.distribution.manifest.v1+json' ), ('application/vnd.docker.distribution.manifest.v2+json' , 'application/vnd.docker.distribution.manifest.v2+json' ), ('application/vnd.docker.distribution.manifest.list.v2+json' , 'application/vnd.docker.distribution.manifest.list.v2+json' )], max_length = 60 )),
56
- ('blobs' , models .ManyToManyField (related_name = 'container_manifest' , through = 'container.BlobManifest' , to = 'container.Blob ' )),
57
- ('config_blob' , models .ForeignKey (null = True , on_delete = django .db .models .deletion .CASCADE , related_name = 'config_blob' , to = 'container.Blob ' )),
56
+ ('blobs' , models .ManyToManyField (related_name = 'container_manifest' , through = 'container.BlobManifest' , to = 'container.blob ' )),
57
+ ('config_blob' , models .ForeignKey (null = True , on_delete = django .db .models .deletion .CASCADE , related_name = 'config_blob' , to = 'container.blob ' )),
58
58
],
59
59
options = {
60
60
'default_related_name' : '%(app_label)s_%(model_name)s' ,
@@ -71,8 +71,8 @@ class Migration(migrations.Migration):
71
71
('os_features' , models .TextField (blank = True , default = '' )),
72
72
('features' , models .TextField (blank = True , default = '' )),
73
73
('variant' , models .CharField (blank = True , default = '' , max_length = 255 )),
74
- ('image_manifest' , models .ForeignKey (on_delete = django .db .models .deletion .CASCADE , related_name = 'image_manifests' , to = 'container.Manifest ' )),
75
- ('manifest_list' , models .ForeignKey (on_delete = django .db .models .deletion .CASCADE , related_name = 'manifest_lists' , to = 'container.Manifest ' )),
74
+ ('image_manifest' , models .ForeignKey (on_delete = django .db .models .deletion .CASCADE , related_name = 'image_manifests' , to = 'container.manifest ' )),
75
+ ('manifest_list' , models .ForeignKey (on_delete = django .db .models .deletion .CASCADE , related_name = 'manifest_lists' , to = 'container.manifest ' )),
76
76
],
77
77
options = {
78
78
'unique_together' : {('image_manifest' , 'manifest_list' )},
@@ -81,14 +81,14 @@ class Migration(migrations.Migration):
81
81
migrations .AddField (
82
82
model_name = 'manifest' ,
83
83
name = 'listed_manifests' ,
84
- field = models .ManyToManyField (related_name = 'container_manifest' , through = 'container.ManifestListManifest' , to = 'container.Manifest ' ),
84
+ field = models .ManyToManyField (related_name = 'container_manifest' , through = 'container.ManifestListManifest' , to = 'container.manifest ' ),
85
85
),
86
86
migrations .CreateModel (
87
87
name = 'ContainerDistribution' ,
88
88
fields = [
89
- ('basedistribution_ptr' , models .OneToOneField (auto_created = True , on_delete = django .db .models .deletion .CASCADE , parent_link = True , primary_key = True , related_name = 'container_containerdistribution' , serialize = False , to = 'core.BaseDistribution ' )),
90
- ('repository' , models .ForeignKey (null = True , on_delete = django .db .models .deletion .SET_NULL , related_name = 'container_containerdistribution' , to = 'core.Repository ' )),
91
- ('repository_version' , models .ForeignKey (null = True , on_delete = django .db .models .deletion .SET_NULL , related_name = 'container_containerdistribution' , to = 'core.RepositoryVersion ' )),
89
+ ('basedistribution_ptr' , models .OneToOneField (auto_created = True , on_delete = django .db .models .deletion .CASCADE , parent_link = True , primary_key = True , related_name = 'container_containerdistribution' , serialize = False , to = 'core.basedistribution ' )),
90
+ ('repository' , models .ForeignKey (null = True , on_delete = django .db .models .deletion .SET_NULL , related_name = 'container_containerdistribution' , to = 'core.repository ' )),
91
+ ('repository_version' , models .ForeignKey (null = True , on_delete = django .db .models .deletion .SET_NULL , related_name = 'container_containerdistribution' , to = 'core.repositoryversion ' )),
92
92
],
93
93
options = {
94
94
'default_related_name' : '%(app_label)s_%(model_name)s' ,
@@ -98,19 +98,19 @@ class Migration(migrations.Migration):
98
98
migrations .AddField (
99
99
model_name = 'blobmanifest' ,
100
100
name = 'manifest' ,
101
- field = models .ForeignKey (on_delete = django .db .models .deletion .CASCADE , related_name = 'blob_manifests' , to = 'container.Manifest ' ),
101
+ field = models .ForeignKey (on_delete = django .db .models .deletion .CASCADE , related_name = 'blob_manifests' , to = 'container.manifest ' ),
102
102
),
103
103
migrations .AddField (
104
104
model_name = 'blobmanifest' ,
105
105
name = 'manifest_blob' ,
106
- field = models .ForeignKey (on_delete = django .db .models .deletion .CASCADE , related_name = 'manifest_blobs' , to = 'container.Blob ' ),
106
+ field = models .ForeignKey (on_delete = django .db .models .deletion .CASCADE , related_name = 'manifest_blobs' , to = 'container.blob ' ),
107
107
),
108
108
migrations .CreateModel (
109
109
name = 'Tag' ,
110
110
fields = [
111
- ('content_ptr' , models .OneToOneField (auto_created = True , on_delete = django .db .models .deletion .CASCADE , parent_link = True , primary_key = True , related_name = 'container_tag' , serialize = False , to = 'core.Content ' )),
111
+ ('content_ptr' , models .OneToOneField (auto_created = True , on_delete = django .db .models .deletion .CASCADE , parent_link = True , primary_key = True , related_name = 'container_tag' , serialize = False , to = 'core.content ' )),
112
112
('name' , models .CharField (db_index = True , max_length = 255 )),
113
- ('tagged_manifest' , models .ForeignKey (null = True , on_delete = django .db .models .deletion .CASCADE , related_name = 'tagged_manifests' , to = 'container.Manifest ' )),
113
+ ('tagged_manifest' , models .ForeignKey (null = True , on_delete = django .db .models .deletion .CASCADE , related_name = 'tagged_manifests' , to = 'container.manifest ' )),
114
114
],
115
115
options = {
116
116
'default_related_name' : '%(app_label)s_%(model_name)s' ,
0 commit comments