Hotfix: User synchronization
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
d793dc3e09
commit
22503375b3
|
@ -56,6 +56,12 @@ module.exports = Self => {
|
|||
if (!userExists) {
|
||||
await Self.rawSql('CREATE USER ?@? IDENTIFIED BY ?',
|
||||
[mysqlUser, this.userHost, password]);
|
||||
await Self.rawSql(
|
||||
`UPDATE mysql.global_priv
|
||||
SET Priv = JSON_SET(Priv, '$.autogenerated' , TRUE)
|
||||
WHERE User = ? AND Host = ?`,
|
||||
[mysqlUser, this.userHost]
|
||||
);
|
||||
userExists = true;
|
||||
} else {
|
||||
switch (this.dbType) {
|
||||
|
|
Loading…
Reference in New Issue