diff --git a/apiserver/plane/db/migrations/0011_auto_20221216_0259.py b/apiserver/plane/db/migrations/0011_auto_20221222_2357.py similarity index 84% rename from apiserver/plane/db/migrations/0011_auto_20221216_0259.py rename to apiserver/plane/db/migrations/0011_auto_20221222_2357.py index 3ea3b9d0b..539403c16 100644 --- a/apiserver/plane/db/migrations/0011_auto_20221216_0259.py +++ b/apiserver/plane/db/migrations/0011_auto_20221222_2357.py @@ -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')), diff --git a/apiserver/plane/db/migrations/0012_user_my_issues_prop.py b/apiserver/plane/db/migrations/0012_user_my_issues_prop.py deleted file mode 100644 index 96c8a33c1..000000000 --- a/apiserver/plane/db/migrations/0012_user_my_issues_prop.py +++ /dev/null @@ -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), - ), - ] diff --git a/apiserver/plane/db/migrations/0013_projectmember_default_props.py b/apiserver/plane/db/migrations/0013_projectmember_default_props.py deleted file mode 100644 index 2369e1863..000000000 --- a/apiserver/plane/db/migrations/0013_projectmember_default_props.py +++ /dev/null @@ -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), - ), - ] diff --git a/apiserver/plane/db/migrations/0014_auto_20221222_1436.py b/apiserver/plane/db/migrations/0014_auto_20221222_1436.py deleted file mode 100644 index 3820eb03e..000000000 --- a/apiserver/plane/db/migrations/0014_auto_20221222_1436.py +++ /dev/null @@ -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'), - ), - ]