There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix: missing feature upsert (#6585)
darkskygit83d8587a45fa
diff --git a/packages/backend/server/src/data/migrations/1713285638427-unlimited-copilot.ts b/packages/backend/server/src/data/migrations/1713285638427-unlimited-copilot.tsnew file mode 100644index 0000000000..c2521302c5--- /dev/null+++ b/packages/backend/server/src/data/migrations/1713285638427-unlimited-copilot.ts@@ -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) {}+}