Skip to content

Commit f6e10f8

Browse files
authored
chore: normalize Logto DB region role names for DB alteration CI (#6144)
1 parent 87615d5 commit f6e10f8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.scripts/compare-database.js

+5
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ const queryDatabaseManifest = async (database) => {
104104
return { ...rest, grantee: 'logto_tenant' };
105105
}
106106

107+
// Removes the last segment of region grantee since Logto will use 'logto_region_xxx' for the role name for different regions.
108+
if (grantee.startsWith('logto_region_')) {
109+
return { ...rest, grantee: 'logto_region' };
110+
}
111+
107112
return { grantee, ...rest };
108113
};
109114

0 commit comments

Comments
 (0)