feat(server): team quota migration (#9081)

This commit is contained in:
darkskygit
2024-12-10 04:46:11 +00:00
parent adc69548ef
commit 36a95463b4

View File

@@ -0,0 +1,14 @@
import { PrismaClient } from '@prisma/client';
import { QuotaType } from '../../core/quota';
import { upsertLatestQuotaVersion } from './utils/user-quotas';
export class TeamQuota1733804966417 {
// do the migration
static async up(db: PrismaClient) {
await upsertLatestQuotaVersion(db, QuotaType.TeamPlanV1);
}
// revert the migration
static async down(_db: PrismaClient) {}
}