fix: make schema idempotent with IF NOT EXISTS

Add i18n locale files to Docker image and fix all CREATE
statements to use IF NOT EXISTS to survive container restarts.
This commit is contained in:
2026-06-23 21:42:39 +03:30
parent b0fcb7a6c3
commit c4e8c8dc3a
2 changed files with 4 additions and 3 deletions

View File

@@ -20,6 +20,7 @@ WORKDIR /data
COPY --from=builder /usr/local/bin/worktime-bot /usr/local/bin/worktime-bot
COPY --from=builder /src/db/schema.sql ./db/schema.sql
COPY --from=builder /src/pkg/i18n/ ./i18n/
VOLUME ["/data"]