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

export class V26toV27Migration extends StorageMigration {
	from = 26;
	to = 27;

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