Skip to content

Commit 01e59b8

Browse files
committed
feat(remove-from-todo): remove unecessary migration files
1 parent d567b3a commit 01e59b8

File tree

6 files changed

+1
-38
lines changed

6 files changed

+1
-38
lines changed

todo/migrations/0005_alter_postgresuserrole_unique_together_and_more.py renamed to todo/migrations/0003_alter_postgresuserrole_unique_together_and_more.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
class Migration(migrations.Migration):
77
dependencies = [
8-
("todo", "0004_alter_postgresuserrole_unique_together"),
8+
("todo", "0002_rename_postgres_ta_assignee_95ca3b_idx_postgres_ta_assigne_f1c6e7_idx_and_more"),
99
]
1010

1111
operations = [

todo/migrations/0003_postgresauditlog_task_count.py

Lines changed: 0 additions & 17 deletions
This file was deleted.

todo/migrations/0004_alter_postgresuserrole_unique_together.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

todo/models/postgres/audit_log.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ class PostgresAuditLog(models.Model):
1717
assignee_from = models.CharField(max_length=24, null=True, blank=True)
1818
assignee_to = models.CharField(max_length=24, null=True, blank=True)
1919
performed_by = models.CharField(max_length=24, null=True, blank=True)
20-
task_count = models.IntegerField(null=True, blank=True)
2120

2221
last_sync_at = models.DateTimeField(auto_now=True)
2322
sync_status = models.CharField(

todo/repositories/audit_log_repository.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ def create(cls, audit_log: AuditLogModel) -> AuditLogModel:
2929
"assignee_from": str(audit_log.assignee_from) if audit_log.assignee_from else None,
3030
"assignee_to": str(audit_log.assignee_to) if audit_log.assignee_to else None,
3131
"performed_by": str(audit_log.performed_by) if audit_log.performed_by else None,
32-
"task_count": int(audit_log.task_count) if audit_log.task_count else None,
3332
}
3433

3534
dual_write_success = dual_write_service.create_document(

todo/views/team.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,6 @@ def get(self, request: Request, team_id: str):
454454
entry["status_from"] = log.status_from
455455
if log.status_to:
456456
entry["status_to"] = log.status_to
457-
if log.task_count:
458-
entry["task_count"] = log.task_count
459457
timeline.append(entry)
460458
return Response({"timeline": timeline}, status=status.HTTP_200_OK)
461459

0 commit comments

Comments
 (0)