From 6be61263642d8e46ec54cf5f51af74e0df2f2393 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Tue, 8 Sep 2020 16:37:28 -0700 Subject: [PATCH] Release 2.18 Refs #145. #155 --- docs/changelog.rst | 10 ++++++++++ setup.py | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 26322c3..48afc0b 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -2,6 +2,16 @@ Changelog =========== +.. _v2_18: + +2.18 (2020-09-08) +----------------- + +- ``table.rebuild_fts()`` method for rebuilding a FTS index, see :ref:`python_api_fts_rebuild`. (`#155 `__) +- ``sqlite-utils rebuild-fts data.db`` command for rebuilding FTS indexes across all tables, or just specific tables. (`#155 `__) +- ``table.optimize()`` method no longer deletes junk rows from the ``*_fts_docsize`` table. This was added in 2.17 but it turns out running ``table.rebuild_fts()`` is a better solution to this problem. +- Fixed a bug where rows with additional columns that are inserted after the first batch of records could cause an error due to breaking SQLite's maximum number of parameters. Thanks, Simon Wiles. (`#145 `__) + .. _v2_17: 2.17 (2020-09-07) diff --git a/setup.py b/setup.py index c4a3afe..6f50822 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages import io import os -VERSION = "2.17" +VERSION = "2.18" def get_long_description():