mirror of
https://github.com/go-shiori/shiori.git
synced 2026-04-25 06:25:54 +03:00
[PR #379] [CLOSED] FTS5 migration #580
Labels
No labels
component:backend
component:builds
component:builds
component:extension
component:frontend
component:readability
database
database:mysql
database:postgres
database:sqlite
feature:ebooks
github_actions
good first issue
hacktoberfest
note:duplicate?
note:fixed?
note:out-of-scope?
os:windows
priority:high
priority:low
pull-request
resolution:as-intended
resolution:cant-reproduce
resolution:duplicate
resolution:fixed
resolution:wontfix
tag:TBD
tag:big-task
tag:help-wanted
tag:huge-data
tag:meta
tag:more-info
tag:next
tag:no-stale
tag:requires-migrations
tag:research
tag:security 🛡️
tag:stale
tag:waiting-for-assignee
type:bug
type:documentation
type:enhancement
type:meta
type:ux
user:cli
user:web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shiori#580
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/go-shiori/shiori/pull/379
Author: @fmartingr
Created: 2/22/2022
Status: ❌ Closed
Base:
master← Head:fix/fts5-migration📝 Commits (1)
f8a2915wip: fts5 migration📊 Changes
1 file changed (+61 additions, -1 deletions)
View changed files
📝
internal/database/sqlite.go(+61 -1)📄 Description
An attempt to migrate the pre 1.5.1
bookmark_contenttable from FTS4 to FTS5. Since alters can't be performed on virtual tables we need to manually copy all content from one table to another.A simple query will be made to check if the table is still fts4 (which means it predates 1.5.1) and the process will happen on the first run using 1.5.1. After that, table will be migrated and the query should not cause much overhead, at least until we implement proper migrations (#270) or an ORM (also with migrations).
This PR only affects SQLite.
Fixes #377
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.