mirror of
https://github.com/go-shiori/shiori.git
synced 2026-04-25 06:25:54 +03:00
[GH-ISSUE #996] Postresql: Start of Shiori fails with "failed to run migration from 0.2.0 to 0.3.0:" after fresh installation #437
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#437
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?
Originally created by @IeP4nieF on GitHub (Oct 13, 2024).
Original GitHub issue: https://github.com/go-shiori/shiori/issues/996
Originally assigned to: @fmartingr on GitHub.
Data
2315f0da40)Describe the bug / actual behavior
After a fresh installation I'm starting Shiori for the first time and and get:
There is not data nor any relations in the database before I start Shiori.
Expected behavior
Shiori should start without errors.
To Reproduce
Use the latest docker-image with postgresql:
in
compose.yml.@fmartingr commented on GitHub (Nov 1, 2024):
The 0.3.0 migration checks the output for the column existence by comparing the error with the string:
column "has_content" of relation "bookmark" already exists, yours is sightly different because it does not use quotes. We need to add a better way to handle that.Edit: Made (not tested) this dirty patch, leaving it here until I (or someone) can make a proper PR
migration-word-check.patch
@fmartingr commented on GitHub (Nov 16, 2024):
Could you run this three queries in your psql server and provide the output? Your output, even if in English, is sightly differnent than mine.