• Carlos Garnacho's avatar
    libtracker-data: Drop FTS table/view before ontology updates · fedb4d58
    Carlos Garnacho authored
    Sqlite >= 3.25.0 got stricter 'alter table ... rename ...' behavior
    where the renaming affects all references to the table across the
    database. This is at odds with our fts_view view on schema updates
    due to ontology changes, as we first migrate (rename current table,
    create new one, insert previous content, drop old table) all resource
    tables before doing the FTS table/view updates. This causes rename
    failures due to the fts_view referencing the renamed and dropped
    tables.
    
    Change the ontology update code so we delete the FTS table/view
    before changing resource tables in case of FTS updates. This makes
    the behavior correct both before and after the Sqlite change.
    
    #40
    fedb4d58
Name
Last commit
Last update
docs Loading commit data...
examples Loading commit data...
m4 Loading commit data...
po Loading commit data...
src Loading commit data...
tests Loading commit data...
utils Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
COPYING.GPL Loading commit data...
COPYING.LGPL Loading commit data...
ChangeLog.pre-0-6-93 Loading commit data...
MAINTAINERS Loading commit data...
Makefile.am Loading commit data...
Makefile.decl Loading commit data...
NEWS Loading commit data...
README Loading commit data...
autogen.sh Loading commit data...
config.h.meson.in Loading commit data...
configure.ac Loading commit data...
gitlog-to-changelog Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...
tap-driver.sh Loading commit data...
tap-test Loading commit data...
tracker.doap Loading commit data...