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:
@@ -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"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user