Anki Forums

DB version corruption with scite with old anki 2.1.44 libs

I experience database corruption when using scite Version 4.1.3 compiled for GTK+ 3.24.2) to run anki script with python,
it changes SCHEMA_INFO leading FileTooNew error on anki 2.1.44,

I have not found why it upgrades 17 to 18 when open Collection with anki 2.1.44.
Here is my script,

I needed 2.1.44 to match anki-cli-unofficial, the last 2.1.47 is ok as SCHEMA_VERSION is 18. I use Python 3.9.5