mirror of
https://github.com/trushildhokiya/allininx-2.git
synced 2025-03-15 09:08:39 +00:00
12 lines
454 B
SQL
12 lines
454 B
SQL
-- Prisma requires DB creation privileges to create a shadow database (https://pris.ly/d/migrate-shadow)
|
|
-- This is not available to our user by default, so we must manually add this
|
|
|
|
-- Create the user
|
|
CREATE USER IF NOT EXISTS 'reworkd_platform'@'%' IDENTIFIED BY 'reworkd_platform';
|
|
|
|
-- Grant the necessary permissions
|
|
GRANT CREATE, ALTER, DROP, INSERT, UPDATE, DELETE, SELECT ON *.* TO 'reworkd_platform'@'%';
|
|
|
|
-- Apply the changes
|
|
FLUSH PRIVILEGES;
|