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

export class V7toV8Migration extends StorageMigration {
	from = 7;
	to = 8;

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