+1
-1
crates/ott-db-migration/migrations/003_configure_pgpartman.sql
+1
-1
crates/ott-db-migration/migrations/003_configure_pgpartman.sql
+2
crates/ott-db-migration/migrations/005_grant_access_to_vec_table.sql
+2
crates/ott-db-migration/migrations/005_grant_access_to_vec_table.sql
+5
helm/ott/templates/pg_migration.yaml
+5
helm/ott/templates/pg_migration.yaml
···
28
28
key: password
29
29
- name: DATABASE_URL
30
30
value: "postgres://$(DATABASE_USER):$(DATABASE_PASSWORD)@postgres-rw.default.svc.cluster.local:5432/app"
31
+
- name: POSTGRES_URL
32
+
value: "postgres://$(DATABASE_USER):$(DATABASE_PASSWORD)@postgres-rw.default.svc.cluster.local:5432/postgres"
31
33
command:
32
34
- /bin/sh
33
35
- -c
···
41
43
echo "Attempt $i/30: Database not ready yet, waiting..."
42
44
sleep 10
43
45
done
46
+
47
+
echo "Making sure extensions are installed"
48
+
psql "$POSTGRES_URL" -c "CREATE EXTENSION IF NOT EXISTS pg_cron;"
44
49
45
50
echo "Setting up migration"
46
51
./app