Commit d166fc0b authored by Jose Borreguero's avatar Jose Borreguero
Browse files

add migration after model changes


Signed-off-by: default avatarJose Borreguero <borreguero@gmail.com>
parent 4a6c100b
Pipeline #196797 passed with stages
in 5 minutes and 44 seconds
...@@ -78,7 +78,9 @@ sdist: clean ## package ...@@ -78,7 +78,9 @@ sdist: clean ## package
makemigrations: ## update migrations with new model changes makemigrations: ## update migrations with new model changes
cd example && \ cd example && \
python -m virtualenv venv && \
source venv/bin/activate && \ source venv/bin/activate && \
python -m pip install -r requirements.txt
python manage.py makemigrations django_remote_submission python manage.py makemigrations django_remote_submission
CONDA_ACTIVATE=source $$(conda info --base)/etc/profile.d/conda.sh ; conda activate CONDA_ACTIVATE=source $$(conda info --base)/etc/profile.d/conda.sh ; conda activate
......
# Generated by Django 3.2 on 2022-03-15 23:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('django_remote_submission', '0002_identityfilemodel'),
]
operations = [
migrations.RemoveField(
model_name='identityfilemodel',
name='recipient',
),
migrations.AddField(
model_name='identityfilemodel',
name='custodian',
field=models.CharField(
help_text='unique identifier of the entity entrusted with the SSH key',
max_length=250,
null=True,
verbose_name='custodian of the key',
),
),
migrations.AddField(
model_name='identityfilemodel',
name='executor',
field=models.CharField(
help_text='username for the account in the remote worker carrying out the jobs',
max_length=250,
null=True,
verbose_name='jobs executor',
),
),
]
...@@ -531,12 +531,14 @@ class IdentityFileModel(TimeStampedModel): ...@@ -531,12 +531,14 @@ class IdentityFileModel(TimeStampedModel):
_("custodian of the key"), _("custodian of the key"),
help_text=_("unique identifier of the entity entrusted with the SSH key"), help_text=_("unique identifier of the entity entrusted with the SSH key"),
max_length=250, max_length=250,
null=True,
) )
executor = models.CharField( executor = models.CharField(
_("jobs executor"), _("jobs executor"),
help_text=_("username for the account in the remote worker carrying out the jobs"), help_text=_("username for the account in the remote worker carrying out the jobs"),
max_length=250, max_length=250,
null=True,
) )
objects = IdentityFileModelManager() objects = IdentityFileModelManager()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment