From 184e6947707ecdf07dfa3a5cbc6e51cf9440e93a Mon Sep 17 00:00:00 2001 From: yyamashita Date: Sun, 10 May 2026 00:21:04 +0900 Subject: Add members table with membership period and note support Replace band_artists + member_periods with a single members table (id, band_id, artist_id, role, since, until, note, order_index). Each row represents one membership period, so rejoining artists get multiple rows. Existing band_artists data is auto-migrated on startup. Export format bumped to version 3. Co-Authored-By: Claude Sonnet 4.6 --- app/routes/api-import.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/routes/api-import.tsx') diff --git a/app/routes/api-import.tsx b/app/routes/api-import.tsx index e28a7db..ca81fc7 100644 --- a/app/routes/api-import.tsx +++ b/app/routes/api-import.tsx @@ -13,8 +13,8 @@ export async function action({ request }: ActionFunctionArgs) { return Response.json({ error: "Invalid JSON body" }, { status: 400 }); } - if (!data || data.version !== 1) { - return Response.json({ error: "Invalid or unsupported export format (expected version 1)" }, { status: 400 }); + if (!data || data.version !== 3) { + return Response.json({ error: "Invalid or unsupported export format (expected version 3)" }, { status: 400 }); } try { -- cgit v1.2.3