feat(server): team quota migration (#9081)
This commit is contained in:
@@ -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) {}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user