Skip to content

Commit e12958f

Browse files
Merge pull request #39 from MaddyGuthridge/maddy-remove-old-migrations
Remove migrations from versions older than 0.5.0
2 parents 39d3f17 + be1b51b commit e12958f

File tree

13 files changed

+40
-791
lines changed

13 files changed

+40
-791
lines changed

src/lib/server/data/migrations/index.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
import { version } from '$app/environment';
22
import { getDataDir, getPrivateDataDir } from '../dataDir';
33
import { updateConfigVersions } from './shared';
4-
import migrateToV020 from './v0.2.0';
5-
import migrateToV030 from './v0.3.0';
6-
import migrateToV040 from './v0.4.0';
7-
import migrateToV060 from './v0.6.0';
84
import migrateToV061 from './v0.6.1';
95
import semver from 'semver';
106

@@ -16,13 +12,6 @@ export type MigrationFunction = (
1612

1713
/** Lookup table of migrations */
1814
const migrations: Record<string, MigrationFunction> = {
19-
'~0.1.0': migrateToV020,
20-
'~0.2.0': migrateToV030,
21-
'~0.3.0': migrateToV040,
22-
// No major changes to data format between 0.4 and 0.5, so just use the 0.5
23-
// function
24-
'~0.4.0': migrateToV060,
25-
'~0.5.0': migrateToV060,
2615
'0.6.0': migrateToV061,
2716
// Pre-empt future releases
2817
'~0.6.1': updateConfigVersions,

src/lib/server/data/migrations/v0.2.0.ts

Lines changed: 0 additions & 276 deletions
This file was deleted.

src/lib/server/data/migrations/v0.3.0.ts

Lines changed: 0 additions & 26 deletions
This file was deleted.

src/lib/server/data/migrations/v0.4.0.ts

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)