dev: added db migrations for identifiers

This commit is contained in:
pablohashescobar 2022-12-13 23:48:55 +05:30
parent 3b0b88620a
commit 2881f990f5

View File

@ -0,0 +1,32 @@
# Generated by Django 3.2.14 on 2022-12-13 18:18
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('db', '0009_auto_20221213_2328'),
]
operations = [
migrations.AddField(
model_name='projectidentifier',
name='workspace',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='project_identifiers', to='db.workspace'),
),
migrations.AlterField(
model_name='project',
name='identifier',
field=models.CharField(max_length=5, verbose_name='Project Identifier'),
),
migrations.AlterUniqueTogether(
name='project',
unique_together={('name', 'workspace'), ('identifier', 'workspace')},
),
migrations.AlterUniqueTogether(
name='projectidentifier',
unique_together={('name', 'workspace')},
),
]