mirror of
https://github.com/penpot/penpot.git
synced 2026-11-16 15:11:17 +00:00
The procedure straddles the upgrade to 2.20.0 and the document said nothing about the order. The preparation (phases 0 and 1) goes before the version update, the bulk and the delta passes after it, and only the cutover needs a scheduled maintenance window. The subtitle claimed the whole thing was online, which is not true. The copy marks no longer travel as a session GUC with a date typed by hand. The delta mark is seeded at the bulk with `now()`, and a CHECK keeps it from ending up empty; the instant of the cutover is recorded in the same table after the commit, so the checks of phase 5 read it instead of comparing against a date the operator retypes in every session. The procedure was run end to end on a scratch database, with the 23 SQL blocks extracted from the document and the application writes simulated between the phases. AI-assisted-by: deepseek-v4.1-flash
Operations
Procedures that are executed by hand on an instance, not by the application.
They are not part of the product: they describe how to do a one-off operation on a running database, with the exact statements to run and what to check between them.
Each procedure lives here while the operation is alive. When the operation is done, the file is either deleted or marked as historical, so the folder does not grow with procedures that nobody will run again.
| Procedure | Version |
|---|---|
Migrate legacy file payloads to file_data |
2.19.0 |
Partition file_change by file_id |
2.20.0 |