Move a folio's numbering counters into the project database

QETZ-DB-FIRST stage 2b-4: the unit/ten/hundred-folio sequential
counters Diagram tracks per numbering scheme (insertFolioSeqHash())
now write through to a new folio_counter table, keyed by
(folio_uuid, owner, level, title, ord). The hashes stay the source
for now, same write-through pattern as 2b-1's numbering rows.
renameElementAutoNum()/AutoNumSchemeCommand::rename() carry the
rows along on a scheme rename.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
ispyisail
2026-10-20 14:02:14 +13:00
parent f692d2d35a
commit 8d5c164d09
6 changed files with 138 additions and 8 deletions
+1
View File
@@ -245,6 +245,7 @@ void AutoNumSchemeCommand::rename(const QString &from, const QString &to)
}
}
}
m_project->dataBase()->renameFolioCounterScheme(QStringLiteral("conductor"), from, to);
} else {
m_project->removeFolioAutoNum(from);
m_project->addFolioAutoNum(to, context);