Skip to content

Commit f6e2b30

Browse files
jaredwolffclaude
andcommitted
fix(ci): update references from db/schema.sql to sqlx migrations
CI and Docker builds broke after removing db/ in favor of migrations/. - ci.yml: point psql init at migrations/20260307000000_initial_schema.sql - Dockerfile: COPY migrations instead of db; remove unused db copy in final stage - docker-build.yml: remove db/schema.sql presence check Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 036390a commit f6e2b30

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
- uses: Swatinem/rust-cache@v2
5757

5858
- name: Initialize test database
59-
run: psql -h localhost -U postgres -d oxicloud_test -f db/schema.sql
59+
run: psql -h localhost -U postgres -d oxicloud_test -f migrations/20260307000000_initial_schema.sql
6060
env:
6161
PGPASSWORD: postgres
6262

.github/workflows/docker-build.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,4 @@ jobs:
7070
echo "=== Static files present ==="
7171
docker run --rm --entrypoint sh test/oxicloud:test -c "ls /app/static/index.html && echo 'OK: static files present'"
7272
73-
echo "=== DB schema present ==="
74-
docker run --rm --entrypoint sh test/oxicloud:test -c "ls /app/db/schema.sql && echo 'OK: schema present'"
75-
7673
echo "✅ Docker build and test completed successfully"

Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ COPY --from=cacher /usr/local/cargo/registry /usr/local/cargo/registry
2424
COPY Cargo.toml Cargo.lock build.rs ./
2525
COPY src src
2626
COPY static static
27-
COPY db db
27+
COPY migrations migrations
2828
# Build with all optimizations (DATABASE_URL only needed at compile-time for sqlx)
2929
ARG DATABASE_URL="postgres://postgres:postgres@localhost/oxicloud"
3030
RUN DATABASE_URL="${DATABASE_URL}" RUSTFLAGS="-C target-cpu=native" cargo build --release
@@ -59,8 +59,6 @@ RUN chmod +x /usr/local/bin/entrypoint.sh
5959

6060
# Copy processed static files (bundled/minified by build.rs in release)
6161
COPY --from=builder --chown=oxicloud:oxicloud /app/static-dist /app/static
62-
COPY --chown=oxicloud:oxicloud db /app/db
63-
6462
# Create storage directory with proper permissions
6563
RUN mkdir -p /app/storage && chown -R oxicloud:oxicloud /app/storage
6664

0 commit comments

Comments
 (0)