fix: 加固认证撤销与运行配置
This commit is contained in:
@@ -93,6 +93,19 @@ describe("database authority constraints", () => {
|
||||
).toBe(true);
|
||||
});
|
||||
|
||||
it("backfills and requires the session token version snapshot", async () => {
|
||||
const columns = await prisma.$queryRaw<
|
||||
Array<{ is_nullable: string; column_default: string | null }>
|
||||
>`
|
||||
SELECT is_nullable, column_default FROM information_schema.columns
|
||||
WHERE table_schema = 'public' AND table_name = 'sessions' AND column_name = 'token_version'`;
|
||||
expect(columns).toHaveLength(1);
|
||||
expect(columns[0]).toMatchObject({
|
||||
is_nullable: "NO",
|
||||
column_default: "0",
|
||||
});
|
||||
});
|
||||
|
||||
it("expresses independent moderation and pool lifecycle state", async () => {
|
||||
const author = await createAccount("states");
|
||||
const bottle = await prisma.bottle.create({
|
||||
|
||||
Reference in New Issue
Block a user