IdentityServer4 持久授权存储。列名称无效 'ConsumedTime'

IdentityServer4 Persisted Grant Storage. Invalid column name 'ConsumedTime'

似乎 PersistedGrant table 创建脚本定义了 here is not in sync with the code of IdentityServer4. I have applied that script to my database, and configured the persistence as described here,但是当我测试登录时,我得到这个错误:

SqlException: Invalid column name 'ConsumedTime'. Invalid column name 'Description'. Invalid column name 'SessionId'.

堆栈跟踪显示在以下代码行中发生了这种情况: IdentityServer4.EntityFramework.Stores.PersistedGrantStore.StoreAsync(PersistedGrant token)

我错过了什么?

您的脚本是旧脚本并已存档,这里是 link 您应该使用的新脚本: https://github.com/IdentityServer/IdentityServer4/blob/main/src/EntityFramework.Storage/migrations/SqlServer/Migrations/PersistedGrantDb.sql