n8n/tasks.md

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
802 B
Markdown
Raw Normal View History

2024-09-19 04:21:59 -07:00
# Goals
* export all data (except execution related data) into a file
* import from said file
* support flag `clean` (default: false)
* false: if db is empty commence else print error
* true: truncate all tables and commence
* foreign keys are retained
# Future Goals
* making the export atomic
* for now users have to shut down all n8n instances while exporting and importing
* have foreign keys on while importing
* for now we disable them before the import and enable them after it again
# File Format
* 1 file per table
* 1 line per row
* format: JSONL
* metadata file
* contains last migration name that was run
* tared/zipped in the end
# Tasks
* include only columns (and all of them) when serializing
* ignoring virtual properties and including ignored things like passwords