summaryrefslogtreecommitdiff
path: root/apps/web/src/services/storage/migrations/v17-to-v18.ts
blob: 142c7836dc4bd43dc8009205eb0a0be20e3cfffd (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 { transformProjectV17ToV18 } from "./transformers/v17-to-v18";

export class V17toV18Migration extends StorageMigration {
	from = 17;
	to = 18;

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