From d937f8939b9395c308c87205a7c28b763f5f5276 Mon Sep 17 00:00:00 2001 From: Elijah Date: Mon, 22 Jan 2024 13:16:54 +0100 Subject: [PATCH] Reset release migrations --- idhub/migrations/0001_initial.py | 26 ++++-- ...n_schemas_name_alter_did_label_and_more.py | 87 ------------------- ...te_description_alter_did_label_and_more.py | 82 ----------------- idhub_auth/migrations/0001_initial.py | 18 +++- oidc4vp/migrations/0001_initial.py | 6 +- promotion/migrations/0001_initial.py | 2 +- 6 files changed, 39 insertions(+), 182 deletions(-) delete mode 100644 idhub/migrations/0002_schemas_description_schemas_name_alter_did_label_and_more.py delete mode 100644 idhub/migrations/0002_schemas_template_description_alter_did_label_and_more.py diff --git a/idhub/migrations/0001_initial.py b/idhub/migrations/0001_initial.py index 6d87ae7..c0c04d3 100644 --- a/idhub/migrations/0001_initial.py +++ b/idhub/migrations/0001_initial.py @@ -1,4 +1,4 @@ -# Generated by Django 4.2.5 on 2023-12-11 08:35 +# Generated by Django 4.2.5 on 2024-01-22 12:15 from django.conf import settings from django.db import migrations, models @@ -26,7 +26,7 @@ class Migration(migrations.Migration): ), ), ('created_at', models.DateTimeField(auto_now=True)), - ('label', models.CharField(max_length=50)), + ('label', models.CharField(max_length=50, verbose_name='Label')), ('did', models.CharField(max_length=250)), ('key_material', models.CharField(max_length=250)), ( @@ -94,6 +94,17 @@ class Migration(migrations.Migration): ('file_schema', models.CharField(max_length=250)), ('data', models.TextField()), ('created_at', models.DateTimeField(auto_now=True)), + ( + '_name', + models.CharField(db_column='name', max_length=250, null=True), + ), + ( + '_description', + models.CharField( + db_column='description', max_length=250, null=True + ), + ), + ('template_description', models.TextField(null=True)), ], ), migrations.CreateModel( @@ -256,8 +267,11 @@ class Migration(migrations.Migration): verbose_name='ID', ), ), - ('created', models.DateTimeField(auto_now=True)), - ('message', models.CharField(max_length=350)), + ('created', models.DateTimeField(auto_now=True, verbose_name='Date')), + ( + 'message', + models.CharField(max_length=350, verbose_name='Description'), + ), ( 'type', models.PositiveSmallIntegerField( @@ -295,7 +309,8 @@ class Migration(migrations.Migration): (28, 'Organisational DID deleted by admin'), (29, 'User deactivated'), (30, 'User activated'), - ] + ], + verbose_name='Event', ), ), ( @@ -327,6 +342,7 @@ class Migration(migrations.Migration): on_delete=django.db.models.deletion.CASCADE, related_name='users', to='idhub.service', + verbose_name='Service', ), ), ( diff --git a/idhub/migrations/0002_schemas_description_schemas_name_alter_did_label_and_more.py b/idhub/migrations/0002_schemas_description_schemas_name_alter_did_label_and_more.py deleted file mode 100644 index cadd82d..0000000 --- a/idhub/migrations/0002_schemas_description_schemas_name_alter_did_label_and_more.py +++ /dev/null @@ -1,87 +0,0 @@ -# Generated by Django 4.2.5 on 2024-01-03 18:04 - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - dependencies = [ - ('idhub', '0001_initial'), - ] - - operations = [ - migrations.AddField( - model_name='schemas', - name='description', - field=models.CharField(max_length=250, null=True), - ), - migrations.AddField( - model_name='schemas', - name='name', - field=models.CharField(max_length=250, null=True), - ), - migrations.AlterField( - model_name='did', - name='label', - field=models.CharField(max_length=50, verbose_name='Label'), - ), - migrations.AlterField( - model_name='event', - name='created', - field=models.DateTimeField(auto_now=True, verbose_name='Date'), - ), - migrations.AlterField( - model_name='event', - name='message', - field=models.CharField(max_length=350, verbose_name='Description'), - ), - migrations.AlterField( - model_name='event', - name='type', - field=models.PositiveSmallIntegerField( - choices=[ - (1, 'User registered'), - (2, 'User welcomed'), - (3, 'Data update requested by user'), - (4, 'Data update requested. Pending approval by administrator'), - (5, "User's data updated by admin"), - (6, 'Your data updated by admin'), - (7, 'User deactivated by admin'), - (8, 'DID created by user'), - (9, 'DID created'), - (10, 'DID deleted'), - (11, 'Credential deleted by user'), - (12, 'Credential deleted'), - (13, 'Credential issued for user'), - (14, 'Credential issued'), - (15, 'Credential presented by user'), - (16, 'Credential presented'), - (17, 'Credential enabled'), - (18, 'Credential available'), - (19, 'Credential revoked by admin'), - (20, 'Credential revoked'), - (21, 'Role created by admin'), - (22, 'Role modified by admin'), - (23, 'Role deleted by admin'), - (24, 'Service created by admin'), - (25, 'Service modified by admin'), - (26, 'Service deleted by admin'), - (27, 'Organisational DID created by admin'), - (28, 'Organisational DID deleted by admin'), - (29, 'User deactivated'), - (30, 'User activated'), - ], - verbose_name='Event', - ), - ), - migrations.AlterField( - model_name='userrol', - name='service', - field=models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, - related_name='users', - to='idhub.service', - verbose_name='Service', - ), - ), - ] diff --git a/idhub/migrations/0002_schemas_template_description_alter_did_label_and_more.py b/idhub/migrations/0002_schemas_template_description_alter_did_label_and_more.py deleted file mode 100644 index 866e23c..0000000 --- a/idhub/migrations/0002_schemas_template_description_alter_did_label_and_more.py +++ /dev/null @@ -1,82 +0,0 @@ -# Generated by Django 4.2.5 on 2023-12-19 17:27 - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - dependencies = [ - ('idhub', '0001_initial'), - ] - - operations = [ - migrations.AddField( - model_name='schemas', - name='template_description', - field=models.TextField(null=True), - ), - migrations.AlterField( - model_name='did', - name='label', - field=models.CharField(max_length=50, verbose_name='Label'), - ), - migrations.AlterField( - model_name='event', - name='created', - field=models.DateTimeField(auto_now=True, verbose_name='Date'), - ), - migrations.AlterField( - model_name='event', - name='message', - field=models.CharField(max_length=350, verbose_name='Description'), - ), - migrations.AlterField( - model_name='event', - name='type', - field=models.PositiveSmallIntegerField( - choices=[ - (1, 'User registered'), - (2, 'User welcomed'), - (3, 'Data update requested by user'), - (4, 'Data update requested. Pending approval by administrator'), - (5, "User's data updated by admin"), - (6, 'Your data updated by admin'), - (7, 'User deactivated by admin'), - (8, 'DID created by user'), - (9, 'DID created'), - (10, 'DID deleted'), - (11, 'Credential deleted by user'), - (12, 'Credential deleted'), - (13, 'Credential issued for user'), - (14, 'Credential issued'), - (15, 'Credential presented by user'), - (16, 'Credential presented'), - (17, 'Credential enabled'), - (18, 'Credential available'), - (19, 'Credential revoked by admin'), - (20, 'Credential revoked'), - (21, 'Role created by admin'), - (22, 'Role modified by admin'), - (23, 'Role deleted by admin'), - (24, 'Service created by admin'), - (25, 'Service modified by admin'), - (26, 'Service deleted by admin'), - (27, 'Organisational DID created by admin'), - (28, 'Organisational DID deleted by admin'), - (29, 'User deactivated'), - (30, 'User activated'), - ], - verbose_name='Event', - ), - ), - migrations.AlterField( - model_name='userrol', - name='service', - field=models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, - related_name='users', - to='idhub.service', - verbose_name='Service', - ), - ), - ] diff --git a/idhub_auth/migrations/0001_initial.py b/idhub_auth/migrations/0001_initial.py index f460a62..bd9b3eb 100644 --- a/idhub_auth/migrations/0001_initial.py +++ b/idhub_auth/migrations/0001_initial.py @@ -1,4 +1,4 @@ -# Generated by Django 4.2.5 on 2023-12-11 08:35 +# Generated by Django 4.2.5 on 2024-01-22 12:15 from django.db import migrations, models @@ -31,13 +31,23 @@ class Migration(migrations.Migration): ( 'email', models.EmailField( - max_length=255, unique=True, verbose_name='email address' + max_length=255, unique=True, verbose_name='Email address' ), ), ('is_active', models.BooleanField(default=True)), ('is_admin', models.BooleanField(default=False)), - ('first_name', models.CharField(blank=True, max_length=255, null=True)), - ('last_name', models.CharField(blank=True, max_length=255, null=True)), + ( + 'first_name', + models.CharField( + blank=True, max_length=255, null=True, verbose_name='First name' + ), + ), + ( + 'last_name', + models.CharField( + blank=True, max_length=255, null=True, verbose_name='Last name' + ), + ), ], options={ 'abstract': False, diff --git a/oidc4vp/migrations/0001_initial.py b/oidc4vp/migrations/0001_initial.py index 700c4e8..2f67109 100644 --- a/oidc4vp/migrations/0001_initial.py +++ b/oidc4vp/migrations/0001_initial.py @@ -1,4 +1,4 @@ -# Generated by Django 4.2.5 on 2023-12-11 08:35 +# Generated by Django 4.2.5 on 2024-01-22 12:16 from django.conf import settings from django.db import migrations, models @@ -30,7 +30,7 @@ class Migration(migrations.Migration): 'code', models.CharField(default=oidc4vp.models.set_code, max_length=24), ), - ('code_used', models.BooleanField()), + ('code_used', models.BooleanField(default=False)), ('created', models.DateTimeField(auto_now=True)), ('presentation_definition', models.CharField(max_length=250)), ], @@ -91,7 +91,7 @@ class Migration(migrations.Migration): models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, - related_name='oauth2vptoken', + related_name='vp_tokens', to='oidc4vp.authorization', ), ), diff --git a/promotion/migrations/0001_initial.py b/promotion/migrations/0001_initial.py index cbc1f17..b994f2f 100644 --- a/promotion/migrations/0001_initial.py +++ b/promotion/migrations/0001_initial.py @@ -1,4 +1,4 @@ -# Generated by Django 4.2.5 on 2023-12-11 08:35 +# Generated by Django 4.2.5 on 2024-01-22 12:16 from django.db import migrations, models import django.db.models.deletion