Author | Jakob Wakeling <[email protected]> |
Date | 2024-03-15 08:24:00 |
Commit | add9cbf017280d477330f7f64939afc039ff531f |
Parent | b6c2a7bb97a1f12d63bf0ec5ecef14f8b4f57d7f |
Fix database initialization
Diffstat
M | Containerfile | | | 3 | +-- |
M | src/goit/db.go | | | 2 | +- |
2 files changed, 2 insertions, 3 deletions
diff --git a/Containerfile b/Containerfile index d8447ce..5ae7b6f 100644 --- a/Containerfile +++ b/Containerfile @@ -14,7 +14,6 @@ RUN apk add --no-cache git COPY --from=build /app/bin /app/bin RUN mkdir -p /run/user/0 WORKDIR /app -ENV XDG_CONFIG_HOME=/app/config XDG_DATA_HOME=/app/data XDG_STATE_HOME=/app/state EXPOSE 8080 -VOLUME /app/config/goit /app/data/goit /app/state/goit +VOLUME /etc/goit /var/lib/goit /var/log/goit ENTRYPOINT ["/app/bin/goit"] diff --git a/src/goit/db.go b/src/goit/db.go index 2f88de6..672a9c2 100644 --- a/src/goit/db.go +++ b/src/goit/db.go @@ -72,7 +72,7 @@ func dbUpdate(db *sql.DB) error { description TEXT NOT NULL, default_branch TEXT NOT NULL, upstream TEXT NOT NULL, - is_private BOOLEAN NOT NULL, + visibility INTEGER NOT NULL, is_mirror BOOLEAN NOT NULL )`, ); err != nil {