Commit 67b091d
fix: grant schema privileges to database user for PostgreSQL 15+
PostgreSQL 15+ changed the default security model where the PUBLIC role
no longer has CREATE privilege on the public schema. This caused Flyway
migrations to fail during integration tests with "permission denied for
schema public" errors.
Added explicit GRANT commands to:
- Grant all privileges on the public schema to the database user
- Grant privileges on all existing tables in the schema
- Set default privileges for future tables created in the schema
This fix ensures the yaci-indexer can successfully run database migrations
during Docker container initialization.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 8fc598c commit 67b091d
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
128 | 134 | | |
129 | 135 | | |
130 | 136 | | |
| |||
0 commit comments