diff --git a/scripts/procedures/migrations.ts b/scripts/procedures/migrations.ts index fe4371e..15af217 100644 --- a/scripts/procedures/migrations.ts +++ b/scripts/procedures/migrations.ts @@ -1,4 +1,24 @@ -import { compat, types as T } from "../deps.ts"; +import { compat, matches, types as T } from "../deps.ts"; -export const migration: T.ExpectedExports.migration = compat.migrations - .fromMapping({}, "0.3.5" ); +export const migration: T.ExpectedExports.migration = + compat.migrations.fromMapping( + { + "0.2.1": { + up: compat.migrations.updateConfig( + (config) => { + return config; + }, + false, + { version: "0.2.1", type: "up" } + ), + down: compat.migrations.updateConfig( + (config) => { + return config; + }, + false, + { version: "0.2.1", type: "down" } + ), + }, + }, + "0.2.1" + );