dev: redo migrations for new features

This commit is contained in:
vamsi 2022-12-22 23:58:59 +05:30
parent 423d6b4455
commit ff56f85f8a
4 changed files with 24 additions and 66 deletions

View File

@ -1,8 +1,9 @@
# Generated by Django 3.2.14 on 2022-12-15 21:29
# Generated by Django 3.2.14 on 2022-12-22 18:27
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import plane.db.models.project
import uuid
@ -26,8 +27,6 @@ class Migration(migrations.Migration):
('start_date', models.DateField(null=True)),
('target_date', models.DateField(null=True)),
('status', models.CharField(choices=[('backlog', 'Backlog'), ('planned', 'Planned'), ('in-progress', 'In Progress'), ('paused', 'Paused'), ('completed', 'Completed'), ('cancelled', 'Cancelled')], default='planned', max_length=20)),
('created_by', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='module_created_by', to=settings.AUTH_USER_MODEL, verbose_name='Created By')),
('lead', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='module_leads', to=settings.AUTH_USER_MODEL)),
],
options={
'verbose_name': 'Module',
@ -41,6 +40,16 @@ class Migration(migrations.Migration):
name='icon',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='projectmember',
name='default_props',
field=models.JSONField(default=plane.db.models.project.get_default_props),
),
migrations.AddField(
model_name='user',
name='my_issues_prop',
field=models.JSONField(null=True),
),
migrations.CreateModel(
name='ModuleMember',
fields=[
@ -62,6 +71,16 @@ class Migration(migrations.Migration):
'unique_together': {('module', 'member')},
},
),
migrations.AddField(
model_name='module',
name='created_by',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='module_created_by', to=settings.AUTH_USER_MODEL, verbose_name='Created By'),
),
migrations.AddField(
model_name='module',
name='lead',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='module_leads', to=settings.AUTH_USER_MODEL),
),
migrations.AddField(
model_name='module',
name='members',
@ -89,8 +108,8 @@ class Migration(migrations.Migration):
('updated_at', models.DateTimeField(auto_now=True, verbose_name='Last Modified At')),
('id', models.UUIDField(db_index=True, default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)),
('created_by', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='moduleissue_created_by', to=settings.AUTH_USER_MODEL, verbose_name='Created By')),
('issue', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='module_issues', to='db.issue')),
('module', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='module_issues', to='db.module')),
('issue', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='issue_module', to='db.issue')),
('module', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='issue_module', to='db.module')),
('project', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='project_moduleissue', to='db.project')),
('updated_by', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='moduleissue_updated_by', to=settings.AUTH_USER_MODEL, verbose_name='Last Modified By')),
('workspace', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='workspace_moduleissue', to='db.workspace')),

View File

@ -1,18 +0,0 @@
# Generated by Django 3.2.14 on 2022-12-20 09:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('db', '0011_auto_20221216_0259'),
]
operations = [
migrations.AddField(
model_name='user',
name='my_issues_prop',
field=models.JSONField(null=True),
),
]

View File

@ -1,19 +0,0 @@
# Generated by Django 3.2.14 on 2022-12-20 11:29
from django.db import migrations, models
import plane.db.models.project
class Migration(migrations.Migration):
dependencies = [
('db', '0012_user_my_issues_prop'),
]
operations = [
migrations.AddField(
model_name='projectmember',
name='default_props',
field=models.JSONField(default=plane.db.models.project.get_default_props),
),
]

View File

@ -1,24 +0,0 @@
# Generated by Django 3.2.14 on 2022-12-22 09:06
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('db', '0013_projectmember_default_props'),
]
operations = [
migrations.AlterField(
model_name='moduleissue',
name='issue',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='issue_module', to='db.issue'),
),
migrations.AlterField(
model_name='moduleissue',
name='module',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='issue_module', to='db.module'),
),
]