File tree Expand file tree Collapse file tree 1 file changed +13
-19
lines changed Expand file tree Collapse file tree 1 file changed +13
-19
lines changed Original file line number Diff line number Diff line change @@ -40,25 +40,19 @@ jobs:
40
40
- name : Install dependencies
41
41
run : yarn install
42
42
43
- - name : Validate SQL Schema
44
- run : |
45
- # Install PostgreSQL client
46
- sudo apt-get update
47
- sudo apt-get install -y postgresql-client
48
-
49
- # Test SQL syntax
50
- echo "Testing SQL syntax..."
51
- psql $DATABASE_URL -f migrations.sql --dry-run || {
52
- echo "❌ SQL syntax validation failed"
53
- exit 1
54
- }
55
- echo "✅ SQL syntax is valid"
56
-
57
- - name : Run Database Migrations
58
- run : |
59
- echo "Running migrations..."
60
- psql $DATABASE_URL -f migrations.sql
61
- echo "✅ Migrations completed successfully"
43
+ - name : Install PostgreSQL Client and Run Migrations
44
+ run : |
45
+ # Install PostgreSQL client
46
+ sudo apt-get update
47
+ sudo apt-get install -y postgresql-client
48
+
49
+ # Run migrations (they are idempotent with IF NOT EXISTS)
50
+ echo "Running database migrations..."
51
+ psql $DATABASE_URL -f migrations.sql || {
52
+ echo "❌ Database migrations failed"
53
+ exit 1
54
+ }
55
+ echo "✅ Database migrations completed successfully"
62
56
63
57
- name : Test Database Extensions
64
58
run : |
You can’t perform that action at this time.
0 commit comments