Skip to content

Commit

Permalink
feat(server): team quota migration (#9081)
Browse files Browse the repository at this point in the history
  • Loading branch information
darkskygit committed Dec 10, 2024
1 parent adc6954 commit 36a9546
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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) {}
}

0 comments on commit 36a9546

Please sign in to comment.