From 27ba8b071aa4a6924e951a140e130b133873387d Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 12 Aug 2024 16:48:42 -0500 Subject: [PATCH] pg migration: advise checking out main branch --- src/db/migrations/030_pg_events_jsonb.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/db/migrations/030_pg_events_jsonb.ts b/src/db/migrations/030_pg_events_jsonb.ts index 894b89a0..7bfc6c17 100644 --- a/src/db/migrations/030_pg_events_jsonb.ts +++ b/src/db/migrations/030_pg_events_jsonb.ts @@ -81,10 +81,11 @@ If you don't want to wait, you can create a fresh database and then import your 1. Revert to a prior commit: e789e08c 2. Export your events: "deno task db:export > events.jsonl" -3. Drop your old database: "dropdb ditto" -4. Create a new database: "createdb ditto" -5. Start Ditto -6. While Ditto is running, import your events: "cat events.jsonl | deno task db:import"`); +3. Checkout the latest commit: "git checkout main && git pull" +4. Drop your old database: "dropdb ditto" +5. Create a new database: "createdb ditto" +6. Start Ditto +7. While Ditto is running, import your events: "cat events.jsonl | deno task db:import"`); const emojis = ['⚡', '🐛', '🔎', '😂', '😅', '😬', '😭', '🙃', '🤔', '🧐', '🧐', '🫠']; iid = setInterval(() => {