summaryrefslogtreecommitdiff
path: root/apps/web/src/services/storage/migrations/v23-to-v24.ts
blob: 3825a9eb9dbb5d0c55aa8120a38e4c8d21499a9b (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 { transformProjectV23ToV24 } from "./transformers/v23-to-v24";

export class V23toV24Migration extends StorageMigration {
	from = 23;
	to = 24;

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