Skip to content

Commit 30c5068

Browse files
mein Namealphatownsman
authored andcommitted
fix missing migration
1 parent 822a56a commit 30c5068

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.DS_Store
22
.venv
3+
/.data
34
/.env
45
/neodb.env
56
/compose.override.yml

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ RUN uv venv /neodb-venv
2121
ENV VIRTUAL_ENV=/neodb-venv
2222
RUN find misc/wheels-cache -type f | xargs -n 1 uv pip install --python /neodb-venv/bin/python || echo incompatible wheel ignored
2323
RUN rm -rf misc/wheels-cache
24-
RUN --mount=type=cache,sharing=locked,target=/root/.cache if [[ -z "$dev" ]] ; then uv sync --active --no-dev ; else uv sync --active ; fi
24+
RUN --mount=type=cache,sharing=locked,target=/root/.cache uv sync --active $(if [[ -z "$dev" ]]; then echo "--no-dev"; fi)
2525

2626
WORKDIR /takahe
2727
RUN uv venv /takahe-venv
2828
ENV VIRTUAL_ENV=/takahe-venv
29-
RUN --mount=type=cache,sharing=locked,target=/root/.cache if [[ -z "$dev" ]] ; then uv sync --active --no-dev ; else uv sync --active ; fi
29+
RUN --mount=type=cache,sharing=locked,target=/root/.cache uv sync --active $(if [[ -z "$dev" ]]; then echo "--no-dev"; fi)
3030

3131
# runtime stage
3232
FROM python:3.13-slim AS runtime

journal/migrations/0001_initial_0_11.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ class Migration(migrations.Migration):
565565
"post",
566566
models.ForeignKey(
567567
db_constraint=False,
568-
on_delete=django.db.models.deletion.CASCADE,
568+
on_delete=django.db.models.deletion.DO_NOTHING,
569569
to="takahe.post",
570570
),
571571
),
@@ -602,7 +602,7 @@ class Migration(migrations.Migration):
602602
"post",
603603
models.ForeignKey(
604604
db_constraint=False,
605-
on_delete=django.db.models.deletion.CASCADE,
605+
on_delete=django.db.models.deletion.DO_NOTHING,
606606
to="takahe.post",
607607
),
608608
),

0 commit comments

Comments
 (0)