File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -40,19 +40,26 @@ jobs:
4040 - name : Install dependencies
4141 run : yarn install
4242
43- - name : Install PostgreSQL Client and Run Migrations
43+ - name : Install PostgreSQL Client and Setup Database
4444 run : |
4545 # Install PostgreSQL client
4646 sudo apt-get update
4747 sudo apt-get install -y postgresql-client
4848
49- # Run migrations (they are idempotent with IF NOT EXISTS)
49+ # Run schema first to create base tables
50+ echo "Creating database schema..."
51+ psql $DATABASE_URL -f schema.sql || {
52+ echo "❌ Database schema creation failed"
53+ exit 1
54+ }
55+
56+ # Run migrations for any updates
5057 echo "Running database migrations..."
5158 psql $DATABASE_URL -f migrations.sql || {
5259 echo "❌ Database migrations failed"
5360 exit 1
5461 }
55- echo "✅ Database migrations completed successfully"
62+ echo "✅ Database setup completed successfully"
5663
5764 - name : Test Database Extensions
5865 run : |
You can’t perform that action at this time.
0 commit comments