mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
chore: normalize Logto DB region role names for DB alteration CI (#6144)
This commit is contained in:
parent
87615d58ce
commit
f6e10f81bd
1 changed files with 5 additions and 0 deletions
|
@ -104,6 +104,11 @@ const queryDatabaseManifest = async (database) => {
|
||||||
return { ...rest, grantee: 'logto_tenant' };
|
return { ...rest, grantee: 'logto_tenant' };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Removes the last segment of region grantee since Logto will use 'logto_region_xxx' for the role name for different regions.
|
||||||
|
if (grantee.startsWith('logto_region_')) {
|
||||||
|
return { ...rest, grantee: 'logto_region' };
|
||||||
|
}
|
||||||
|
|
||||||
return { grantee, ...rest };
|
return { grantee, ...rest };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue