summaryrefslogtreecommitdiff
path: root/apps/web/src/services/storage/migrations/v8-to-v9.ts
blob: b8baee60b95fddc30790504cf3d6ff23b62e0660 (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 { transformProjectV8ToV9 } from "./transformers/v8-to-v9";

export class V8toV9Migration extends StorageMigration {
	from = 8;
	to = 9;

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