mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
dev: added db migrations for identifiers
This commit is contained in:
parent
3b0b88620a
commit
2881f990f5
32
apiserver/plane/db/migrations/0010_auto_20221213_2348.py
Normal file
32
apiserver/plane/db/migrations/0010_auto_20221213_2348.py
Normal 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')},
|
||||
),
|
||||
]
|
Loading…
Reference in New Issue
Block a user