summaryrefslogtreecommitdiff
path: root/apps/web/src/services/storage/migrations/v27-to-v28.ts
blob: aaec62564e3193b42cccceeb0d3a6a686da82b03 (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 { transformProjectV27ToV28 } from "./transformers/v27-to-v28";

export class V27toV28Migration extends StorageMigration {
	from = 27;
	to = 28;

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