Skip to content
Discussion options

You must be logged in to vote

This means the database tables haven't been created yet. Chamaa.API uses Flyway for database migrations in production. Here's how to fix it:

Option 1: Let Flyway Handle It (Recommended)

Make sure your application-prod.properties or environment variables are set:

spring.flyway.enabled=true
spring.jpa.hibernate.ddl-auto=validate

Flyway will automatically run migration scripts from src/main/resources/db/migration/ on startup.

Option 2: Manual Setup

If you're setting up PostgreSQL manually:

# Create the database
psql -U postgres -c "CREATE DATABASE chamaa_db;"
# Run migrations manually
cd apps/backend
./mvnw flyway:migrate -Dflyway.url=jdbc:postgresql://localhost:5432/chamaa_db

Option 3: Quic…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Pixell-droid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants