summaryrefslogtreecommitdiff
path: root/apps/web/src/services/storage/migrations/v0-to-v1.ts
blob: bebd01037884ae66327b0e7d1a2d3cf70f8d85bc (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 { transformProjectV0ToV1 } from "./transformers/v0-to-v1";

export class V0toV1Migration extends StorageMigration {
	from = 0;
	to = 1;

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