Skip to content

Commit

Permalink
Change poll result id to big int
Browse files Browse the repository at this point in the history
  • Loading branch information
norkans7 committed Jan 6, 2025
1 parent 96b677d commit 7550def
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
18 changes: 18 additions & 0 deletions ureport/polls/migrations/0080_alter_pollresult_id.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 5.1.2 on 2025-01-06 09:51

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("polls", "0079_remove_poll_polls_poll_org_id_published_id_6b0e6423_idx_and_more"),
]

operations = [
migrations.AlterField(
model_name="pollresult",
name="id",
field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID"),
),
]
2 changes: 2 additions & 0 deletions ureport/polls/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1363,6 +1363,8 @@ class Meta:


class PollResult(models.Model):
id = models.BigAutoField(auto_created=True, primary_key=True, verbose_name="ID")

org = models.ForeignKey(Org, on_delete=models.PROTECT, related_name="poll_results", db_index=False)

flow = models.CharField(max_length=36)
Expand Down

0 comments on commit 7550def

Please sign in to comment.