mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-24 04:27:27 +08:00
17 lines
458 B
TypeScript
17 lines
458 B
TypeScript
import { PrismaClient } from '@prisma/client';
|
|
|
|
import { Quotas } from '../../core/quota/schema';
|
|
import { upgradeQuotaVersion } from './utils/user-quotas';
|
|
|
|
export class BusinessBlobLimit1706513866287 {
|
|
// do the migration
|
|
static async up(db: PrismaClient) {
|
|
// free plan 1.1
|
|
const quota = Quotas[4];
|
|
await upgradeQuotaVersion(db, quota, 'free plan 1.1 migration');
|
|
}
|
|
|
|
// revert the migration
|
|
static async down(_db: PrismaClient) {}
|
|
}
|