mirror of
https://github.com/ElementsProject/lightning.git
synced 2026-08-14 12:42:57 +02:00
Enables STRICT tables in developer mode, but old databases (~2019) may have BLOB values in TEXT columns. Migration converts BLOB faildetail to TEXT with UTF-8 validation, NULLs invalid data. STRICT is only applied to fresh databases; existing databases being upgraded skip STRICT to avoid type affinity issues with legacy data. Also adds security pragmas in developer mode: trusted_schema=OFF, cell_size_check=ON. Fixes #5390. Changelog-Added: Database: STRICT tables and security pragmas in developer mode Changelog-Fixed: Database migration for old BLOB-typed faildetail values |
||
|---|---|---|
| .. | ||
| bindings.c | ||
| bindings.h | ||
| common.h | ||
| db_postgres.c | ||
| db_sqlite3.c | ||
| exec.c | ||
| exec.h | ||
| Makefile | ||
| utils.c | ||
| utils.h | ||