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

export class V11toV12Migration extends StorageMigration {
	from = 11;
	to = 12;

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