diff --git a/infrastructure/migrations/0004_alter_instancecreated_gitea_password.py b/infrastructure/migrations/0004_alter_instancecreated_gitea_password.py new file mode 100644 index 0000000..992f662 --- /dev/null +++ b/infrastructure/migrations/0004_alter_instancecreated_gitea_password.py @@ -0,0 +1,22 @@ +# Generated by Django 4.0.3 on 2022-06-28 09:25 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("infrastructure", "0003_rename_creted_instancecreated_created"), + ] + + operations = [ + migrations.AlterField( + model_name="instancecreated", + name="gitea_password", + field=models.CharField( + default=None, + max_length=32, + verbose_name="Gitea password of this deployment", + ), + ), + ] diff --git a/infrastructure/migrations/0005_remove_instancecreated_gitea_password.py b/infrastructure/migrations/0005_remove_instancecreated_gitea_password.py new file mode 100644 index 0000000..6185e3a --- /dev/null +++ b/infrastructure/migrations/0005_remove_instancecreated_gitea_password.py @@ -0,0 +1,17 @@ +# Generated by Django 4.0.3 on 2022-06-28 14:26 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ("infrastructure", "0004_alter_instancecreated_gitea_password"), + ] + + operations = [ + migrations.RemoveField( + model_name="instancecreated", + name="gitea_password", + ), + ] diff --git a/infrastructure/models.py b/infrastructure/models.py index 2ad0a90..1e0673d 100644 --- a/infrastructure/models.py +++ b/infrastructure/models.py @@ -19,9 +19,4 @@ from dash.models import Instance class InstanceCreated(models.Model): instance = models.ForeignKey(Instance, on_delete=models.PROTECT) - gitea_password = models.CharField( - "Gitea password of this deployment", - default=None, - max_length=32, - ) created = models.BooleanField(default=False)