summaryrefslogtreecommitdiff
path: root/apps/web/src/services/storage/migrations/v10-to-v11.ts
blob: 53ce5bc5c75de003761bcfaf94d322f8c1f4861a (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 { transformProjectV10ToV11 } from "./transformers/v10-to-v11";

export class V10toV11Migration extends StorageMigration {
	from = 10;
	to = 11;

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