summaryrefslogtreecommitdiff
path: root/apps/web/src/services/storage/migrations/v30-to-v31.ts
blob: 35bf0969eed46e06aa16dbac4e872b606eaf58c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { StorageMigration, type StorageMigrationRunArgs } from "./base";
import type { MigrationResult, ProjectRecord } from "./transformers/types";
import { transformProjectV30ToV31 } from "./transformers/v30-to-v31";

export class V30toV31Migration extends StorageMigration {
	from = 30;
	to = 31;

	async run({
		project,
	}: StorageMigrationRunArgs): Promise<MigrationResult<ProjectRecord>> {
		return transformProjectV30ToV31({ project });
	}
}