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:
40
40
- name : Install dependencies
41
41
run : yarn install
42
42
43
- - name : Install PostgreSQL Client and Run Migrations
43
+ - name : Install PostgreSQL Client and Setup Database
44
44
run : |
45
45
# Install PostgreSQL client
46
46
sudo apt-get update
47
47
sudo apt-get install -y postgresql-client
48
48
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
50
57
echo "Running database migrations..."
51
58
psql $DATABASE_URL -f migrations.sql || {
52
59
echo "❌ Database migrations failed"
53
60
exit 1
54
61
}
55
- echo "✅ Database migrations completed successfully"
62
+ echo "✅ Database setup completed successfully"
56
63
57
64
- name : Test Database Extensions
58
65
run : |
You can’t perform that action at this time.
0 commit comments