From 0e4c3d07c91f131dcea5c801b96e726132202bae Mon Sep 17 00:00:00 2001 From: object1037 Date: Thu, 11 Apr 2024 21:03:58 +0900 Subject: [PATCH] specify preview db and update migration command --- package.json | 2 +- wrangler.toml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index b590d615..251cb3dd 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "fmt": "biome format --write ./app", "generate": "drizzle-kit generate:sqlite --schema=./app/.server/schema.ts --out=./migrations", "migrate": "pnpm wrangler d1 migrations apply blog-db", - "migrate:preview": "pnpm wrangler d1 migrations apply blog-db-preview" + "migrate:preview": "pnpm wrangler d1 migrations apply blog-db --preview --remote" }, "dependencies": { "@codemirror/commands": "^6.3.3", diff --git a/wrangler.toml b/wrangler.toml index f4391498..4c293ea5 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -7,6 +7,7 @@ preview_id = "4fee0af77fa3425dac9bd8dc5bfbaf4b" binding = "DB" database_name = "blog-db" database_id = "77f4589e-54f5-43ad-ab44-ccc96e048bfc" +preview_database_id = "fe62b702-8f6b-4b85-81c0-e315529e6ca7" [[r2_buckets]] binding = 'BUCKET'