Skip to content

Commit

Permalink
chore: remove /tools/migrate_kv.ts (denoland#479)
Browse files Browse the repository at this point in the history
Closes denoland#478
Related denoland#470
  • Loading branch information
iuioiua authored Sep 1, 2023
1 parent a1386e9 commit b1bb45c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 55 deletions.
17 changes: 0 additions & 17 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,4 @@ import { start } from "$fresh/server.ts";
import manifest from "./fresh.gen.ts";
import config from "./fresh.config.ts";

/**
* @todo Remove at v1. This is a quick way to reset Deno KV, as database changes are likely to occur and require reset.
*/
import { resetKv } from "./tools/reset_kv.ts";
import { migrateKv } from "./tools/migrate_kv.ts";

if (Deno.env.get("RESET_DENO_KV") === "1") {
await resetKv();
}

/**
* @todo Remove at v1. This is a quick way to migrate Deno KV, as database changes are likely to occur and require adjustment.
*/
if (Deno.env.get("MIGRATE_DENO_KV") === "1") {
await migrateKv();
}

await start(manifest, config);
38 changes: 0 additions & 38 deletions tools/migrate_kv.ts

This file was deleted.

0 comments on commit b1bb45c

Please sign in to comment.