n8n/packages/@n8n/db
Jaakko Husso 3a13139f78
feat(core): Change workflow deletions to soft deletes (#14894)
Adds soft‑deletion support for workflows through a new boolean column `isArchived`.

When a workflow is archived we now set `isArchived` flag to true and the workflows
stays in the database and is omitted from the default workflow listing query.

Archived workflows can be viewed in read-only mode, but they cannot be activated.

Archived workflows are still available by ID and can be invoked as sub-executions,
so existing Execute Workflow nodes continue to work. Execution engine doesn't
care about isArchived flag.

Users can restore workflows via Unarchive action at the UI.
2025-05-06 17:48:24 +03:00
..
src feat(core): Change workflow deletions to soft deletes (#14894) 2025-05-06 17:48:24 +03:00
.eslintrc.js refactor(core): Set up @n8n/db package (#14904) 2025-04-28 09:08:07 +02:00
jest.config.js refactor(core): Set up @n8n/db package (#14904) 2025-04-28 09:08:07 +02:00
package.json refactor(core): Move first batch of repositories to @n8n/db (#15130) 2025-05-06 11:22:43 +02:00
tsconfig.build.json refactor(core): Set up @n8n/db package (#14904) 2025-04-28 09:08:07 +02:00
tsconfig.json refactor(core): Move more code into @n8n/permissions. Add aditional tests and docs (no-changelog) (#15062) 2025-05-06 15:11:05 +02:00