fix(plugin-auth): update migration rules for issued tokens and token policy config (#6107)

This commit is contained in:
Sheldon Guo 2025-01-21 10:46:33 +08:00 committed by GitHub
parent 67c1d9d131
commit c46cdd37ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,7 @@ import { issuedTokensCollectionName } from '../../constants';
export default defineCollection({
name: issuedTokensCollectionName,
migrationRules: ['schema-only', 'skip'],
autoGenId: false,
createdAt: true,
updatedAt: true,

View File

@ -13,6 +13,7 @@ import { tokenPolicyCollectionName } from '../../constants';
export default defineCollection({
name: tokenPolicyCollectionName,
migrationRules: ['overwrite', 'skip'],
autoGenId: false,
createdAt: true,
createdBy: true,