Add LOCK permission
This commit is contained in:
parent
eb81e1ed20
commit
e200277655
2 changed files with 2 additions and 1 deletions
|
@ -23,6 +23,7 @@ error encountered during creation or update.
|
|||
return different groupings of servers. The default value is `subuser-of` which will include all of the user's servers
|
||||
that they are the owner of, as well as all servers they're a subuser of.
|
||||
* Added back ability to toggle OOM killer status on a per-server basis.
|
||||
* Added `LOCK` permission for generated database users.
|
||||
|
||||
### Changed
|
||||
* Updated Paper egg to not download `server.properties` each time. [parkervcp/eggs#260](https://github.com/parkervcp/eggs/issues/260)
|
||||
|
|
|
@ -153,7 +153,7 @@ class DatabaseRepository extends EloquentRepository implements DatabaseRepositor
|
|||
public function assignUserToDatabase(string $database, string $username, string $remote): bool
|
||||
{
|
||||
return $this->run(sprintf(
|
||||
'GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, INDEX, EXECUTE ON `%s`.* TO `%s`@`%s`',
|
||||
'GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, INDEX, LOCK, EXECUTE ON `%s`.* TO `%s`@`%s`',
|
||||
$database,
|
||||
$username,
|
||||
$remote
|
||||
|
|
Loading…
Reference in a new issue