1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/scripts
Christopher Kolstad a6cde07af0
Updated scripts to use owner (#5341)
See [Linear issue
2-1627](https://linear.app/unleash/issue/2-1627/db-permissions-update-docs-and-migration-guides).

Since we now use functions, we need more permissions than just GRANT ALL
PERMISSIONS ON DATBASE. In addition we need to be allowed to create
functions in the schema that's actually being used. This PR takes the
easy way out and say that we need OWNER privileges on the database. That
guarantees that we can do all we do in our migration scripts.

### Discussion points
We might encounter some pushback on this, if so, we'll need to say that
we need
`GRANT ALL PRIVILEGES ON ALL FUNCTIONS IN <schema>` in addition to GRANT
ALL PRIVILEGES ON DATABASE, where <schema> is the schema selected in
their configuration.
2023-11-27 07:55:03 +00:00
..
check-release.sh fix: add frontend eslint check (#2562) 2023-01-02 10:46:32 +01:00
docker-compose.yml chore(deps): update dpage/pgadmin4 docker tag to v6.21 (#3693) 2023-05-06 08:11:45 +00:00
docker-postgres.sh Chore: rework docker-postgres.sh to be cross-platform (#1037) 2021-10-23 09:12:34 +02:00
fix-migrations-version-1.sql
husky-install.js
jest-setup.js Fix tests (#2040) 2022-09-01 22:22:15 +03:00
npm-tag.js feat: biome lint (#4853) 2023-09-29 14:18:21 +02:00
promote.sh feat: promote toggles script (#3639) 2023-04-28 09:08:12 +02:00
resetdatabase.sql Updated scripts to use owner (#5341) 2023-11-27 07:55:03 +00:00