Skip to content

Commit

Permalink
Add indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Apr 20, 2023
1 parent d192fde commit 0c1c49f
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 4 deletions.
35 changes: 35 additions & 0 deletions docker-app/qfieldcloud/core/migrations/0065_auto_20230420_2055.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Generated by Django 3.2.18 on 2023-04-20 18:55

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("core", "0064_auto_20230328_2017"),
]

operations = [
migrations.AlterField(
model_name="job",
name="created_at",
field=models.DateTimeField(auto_now_add=True, db_index=True),
),
migrations.AlterField(
model_name="job",
name="status",
field=models.CharField(
choices=[
("pending", "Pending"),
("queued", "Queued"),
("started", "Started"),
("finished", "Finished"),
("stopped", "Stopped"),
("failed", "Failed"),
],
db_index=True,
default="pending",
max_length=32,
),
),
]
4 changes: 2 additions & 2 deletions docker-app/qfieldcloud/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1501,12 +1501,12 @@ class Status(models.TextChoices):
)
type = models.CharField(max_length=32, choices=Type.choices)
status = models.CharField(
max_length=32, choices=Status.choices, default=Status.PENDING
max_length=32, choices=Status.choices, default=Status.PENDING, db_index=True
)
output = models.TextField(null=True)
feedback = JSONField(null=True)
created_by = models.ForeignKey(User, on_delete=models.CASCADE)
created_at = models.DateTimeField(auto_now_add=True)
created_at = models.DateTimeField(auto_now_add=True, db_index=True)
updated_at = models.DateTimeField(auto_now=True)
started_at = models.DateTimeField(blank=True, null=True, editable=False)
finished_at = models.DateTimeField(blank=True, null=True, editable=False)
Expand Down
3 changes: 1 addition & 2 deletions docker-qgis/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
FROM qgis/qgis:final-3_28_3
FROM ghcr.io/opengisch/qgis-slim:3.28.3

RUN apt-get update \
&& apt-get upgrade -y \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
python3-pip \
xvfb \
iputils-ping \
glibc-tools \
&& apt-get clean

WORKDIR /usr/src/app
Expand Down

0 comments on commit 0c1c49f

Please sign in to comment.