mirror of
https://github.com/toeverything/AFFiNE.git
synced 2025-01-01 23:13:24 +03:00
fix: missing feature upsert (#6585)
This commit is contained in:
parent
e1c292b8b5
commit
83d8587a45
@ -0,0 +1,14 @@
|
||||
import { PrismaClient } from '@prisma/client';
|
||||
|
||||
import { FeatureType } from '../../core/features';
|
||||
import { upsertLatestFeatureVersion } from './utils/user-features';
|
||||
|
||||
export class UnlimitedCopilot1713285638427 {
|
||||
// do the migration
|
||||
static async up(db: PrismaClient) {
|
||||
await upsertLatestFeatureVersion(db, FeatureType.UnlimitedCopilot);
|
||||
}
|
||||
|
||||
// revert the migration
|
||||
static async down(_db: PrismaClient) {}
|
||||
}
|
Loading…
Reference in New Issue
Block a user