Skip to content

Commit

Permalink
🔨 updated missing migration file (makeplane#1321)
Browse files Browse the repository at this point in the history
Co-authored-by: saitharunsai <sai.tharun@livehealth.in>
  • Loading branch information
saitharunsai and saitharunsai authored Jun 19, 2023
1 parent 0dfa06e commit 59c0de9
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ yarn-error.log*

## Django ##
venv
.venv
*.pyc
staticfiles
mediafiles
Expand Down
83 changes: 83 additions & 0 deletions apiserver/plane/db/migrations/0033_auto_20230618_2125.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# Generated by Django 3.2.19 on 2023-06-18 15:55

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import uuid


class Migration(migrations.Migration):

dependencies = [
('db', '0032_auto_20230520_2015'),
]

operations = [
migrations.CreateModel(
name='Inbox',
fields=[
('created_at', models.DateTimeField(auto_now_add=True, verbose_name='Created At')),
('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)),
('name', models.CharField(max_length=255)),
('description', models.TextField(blank=True, verbose_name='Inbox Description')),
('is_default', models.BooleanField(default=False)),
('view_props', models.JSONField(default=dict)),
('created_by', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='inbox_created_by', to=settings.AUTH_USER_MODEL, verbose_name='Created By')),
],
options={
'verbose_name': 'Inbox',
'verbose_name_plural': 'Inboxes',
'db_table': 'inboxes',
'ordering': ('name',),
},
),
migrations.AddField(
model_name='project',
name='inbox_view',
field=models.BooleanField(default=False),
),
migrations.CreateModel(
name='InboxIssue',
fields=[
('created_at', models.DateTimeField(auto_now_add=True, verbose_name='Created At')),
('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)),
('status', models.IntegerField(choices=[(-2, 'Pending'), (-1, 'Rejected'), (0, 'Snoozed'), (1, 'Accepted'), (2, 'Duplicate')], default=-2)),
('snoozed_till', models.DateTimeField(null=True)),
('source', models.TextField(blank=True, null=True)),
('created_by', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='inboxissue_created_by', to=settings.AUTH_USER_MODEL, verbose_name='Created By')),
('duplicate_to', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='inbox_duplicate', to='db.issue')),
('inbox', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='issue_inbox', to='db.inbox')),
('issue', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='issue_inbox', to='db.issue')),
('project', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='project_inboxissue', to='db.project')),
('updated_by', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='inboxissue_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_inboxissue', to='db.workspace')),
],
options={
'verbose_name': 'InboxIssue',
'verbose_name_plural': 'InboxIssues',
'db_table': 'inbox_issues',
'ordering': ('-created_at',),
},
),
migrations.AddField(
model_name='inbox',
name='project',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='project_inbox', to='db.project'),
),
migrations.AddField(
model_name='inbox',
name='updated_by',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='inbox_updated_by', to=settings.AUTH_USER_MODEL, verbose_name='Last Modified By'),
),
migrations.AddField(
model_name='inbox',
name='workspace',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='workspace_inbox', to='db.workspace'),
),
migrations.AlterUniqueTogether(
name='inbox',
unique_together={('name', 'project')},
),
]
4 changes: 2 additions & 2 deletions apiserver/plane/settings/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
DATABASES = {
"default": {
"ENGINE": "django.db.backends.postgresql_psycopg2",
"NAME": "plane",
"NAME": os.environ.get("PGUSER", "plane"),
"USER": "",
"PASSWORD": "",
"HOST": "",
"HOST": os.environ.get("PGHOST", "localhost"),
}
}

Expand Down
4 changes: 2 additions & 2 deletions apiserver/plane/settings/staging.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
DATABASES = {
"default": {
"ENGINE": "django.db.backends.postgresql_psycopg2",
"NAME": "plane",
"NAME": os.environ.get("PGUSER", "plane"),
"USER": "",
"PASSWORD": "",
"HOST": "",
"HOST": os.environ.get("PGHOST", "localhost"),
}
}

Expand Down

0 comments on commit 59c0de9

Please sign in to comment.