mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-22 12:32:00 +08:00
15 lines
420 B
TypeScript
15 lines
420 B
TypeScript
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) {}
|
|
}
|