You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by "hqhq1025 (via GitHub)" <gi...@apache.org> on 2026/09/01 03:38:26 UTC

Re: [PR] chore: retire the Task Ledger domain and drop its storage [maka]

hqhq1025 commented on code in PR #4400:
URL: https://github.com/apache/maka/pull/4400#discussion_r3900567723


##########
packages/storage/src/sqlite-workflow-schema.ts:
##########
@@ -44,15 +44,7 @@ export function migrateSqliteWorkflowDatabase(db: DatabaseSync): void {
   db.exec(`
     DROP INDEX IF EXISTS workflow_plan_reminders_order;
     DROP TABLE IF EXISTS workflow_plan_reminders;
-
-    CREATE TABLE IF NOT EXISTS workflow_task_ledger_events (
-      session_id TEXT NOT NULL,
-      sequence INTEGER NOT NULL CHECK (sequence >= 0),
-      event_id TEXT NOT NULL,
-      record_json TEXT NOT NULL,
-      PRIMARY KEY (session_id, sequence),
-      UNIQUE (session_id, event_id)
-    );
+    DROP TABLE IF EXISTS workflow_task_ledger_events;

Review Comment:
   [P2] Add the user-visible release note before shipping this destructive migration
   
   Schema 12 irreversibly deletes unfinished Task Ledger rows from workspaces last opened by v0.1.0-v0.1.11 or v0.2.0-incubating-rc1. The PR and #4399 explicitly say this break needs a release-note line, but `CHANGELOG.md` is unchanged. Because opening an upgraded workspace removes the only live copy, please add an Unreleased/0.2.0 entry before the release cut so users can finish or back up those Tasks first.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org