mirror of
https://github.com/go-shiori/shiori.git
synced 2026-04-25 14:35:52 +03:00
[GH-ISSUE #417] DB not created in brand new installation/build (sqlite) #264
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#264
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 @phiatlux on GitHub (Apr 5, 2022).
Original GitHub issue: https://github.com/go-shiori/shiori/issues/417
I am probably doing sth wrong, but it looks like that in a brand new shiori installation/build, the db is not created.
I mean, I'm getting a failed to fetch accounts: SQL logic error: no such table: account (1) (500) when I'm trying to login, or
Failed to create ID: SQL logic error: no such table: bookmark (1), if I try to shiori add
@fmartingr commented on GitHub (Apr 6, 2022):
Hey @phiatlux, can you run
shiori migrateand check if that creates the tables properly? I added migrations to SQLIte in the latest development version but forgot to add the explanation in the readme, mostly because I need to revamp the docs.@phiatlux commented on GitHub (Apr 6, 2022):
@fmartingr you're right!
shiori migrateis all it takes. Thank you very much.
@wgetgoose commented on GitHub (May 12, 2022):
Just wanted to update that this issue persists in docker as well.
@fmartingr commented on GitHub (May 26, 2022):
You need to run
shiori migratefor fresh installations and upgrades as well when running shiori under containers.I've added a mention to this in the docs.
@0xf61 commented on GitHub (Jun 7, 2022):
I did not want to open a new issue, so I am sorry for the resurrection. I tried to deploy on Heroku and this "migrate" thing is kind of annoying. Also, you can't choose which port to listen to on Heroku, so I changed the Dockerfile like this.
@fmartingr commented on GitHub (Jun 8, 2022):
If I recall correctly, Heroku supports a special release phase for this kind of stuff, you can have a
releasedyno running the one-off migration command instead of running them on the Dockerfile (which it may not work depending on the situation). I'm not sure what the best solution would be for the port issue, since that is specific to Heroku.