mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-17 11:24:14 +02:00
d50f27dc8b
The reader of project.sqlite knew two formats at once: every query asked the database which column names to use (v2() ? "folio_id" : "folio_uuid" and so on), and each new format would have added another branch to every query. Asked in discussion #1440. An older database is now brought up a format at a time when a .qetz opens (readyToRead()): format 2 to 3 renames its tables' columns, adds the show columns and puts the symbols' and wires' uuids and the symbols' type back in the folio files; 3 to 4 has nothing to change for reading. The reader then knows only the current format. The next format adds one step. Checked: the format 2 test file (tests/qttest/fixtures/qetz_format2.qetz) resaved as .qet and as .qetz gives the same files as master. format2Read now also checks that every symbol and wire gets its uuid and type back: it failed with the type left out of the step, which the test did not see before. ctest 106/106. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>