This website requires JavaScript.
Explore
Help
Sign In
Mirrors
/
unleash.unleash
Watch
1
Star
0
Fork
0
You've already forked unleash.unleash
mirror of
https://github.com/Unleash/unleash.git
synced
2024-12-28 00:06:53 +01:00
Code
Issues
Projects
Releases
Wiki
Activity
7ed1d770a8
unleash.unleash
/
scripts
/
resetdatabase.sql
3 lines
72 B
MySQL
Raw
Normal View
History
Unescape
Escape
Add quick reset of database script
2021-03-11 11:18:02 +01:00
DROP
DATABASE
unleash
;
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 08:55:03 +01:00
CREATE
DATABASE
unleash
WITH
OWNER
unleash_user
;
Reference in New Issue
Copy Permalink