- Updated comments in LeadsListScreen, MoreScreen, TaskDetailScreen, TaskFormScreen, TasksListScreen, TicketAnalyticsScreen, TicketDetailScreen, TicketsListScreen, ApiService, AuthService, CrashReporting, DealCard, TicketCard, MultiSelectSheet, KanbanColumn, StageStepper, TicketApprovalPanel, TicketPropertiesCard, and TicketTimePanel to improve readability and maintain a consistent style. - Adjusted punctuation and phrasing for better flow and understanding.
23 lines
678 B
Python
23 lines
678 B
Python
# Composite index used by the cases analytics aggregation queries. See
|
|
# docs/cases/tier2/reporting.md "Data model changes". Lets us scan
|
|
# `Case` Activity rows by (entity_type, action, created_at) inside a single
|
|
# org without re-walking the whole table.
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
("common", "0018_add_notification"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddIndex(
|
|
model_name="activity",
|
|
index=models.Index(
|
|
fields=["org", "entity_type", "action", "created_at"],
|
|
name="activity_analytics_idx",
|
|
),
|
|
),
|
|
]
|