mirror of
https://github.com/go-shiori/shiori.git
synced 2026-04-25 14:35:52 +03:00
[GH-ISSUE #163] MySQL column definitions are incorrect #120
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#120
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 @deanishe on GitHub (Sep 22, 2019).
Original GitHub issue: https://github.com/go-shiori/shiori/issues/163
AUTO_INCREMENTis missing onidfieldsTEXTfields must be truncated for use in an indexTEXT/BLOBdefault values must be expressions@RadhiFadlillah commented on GitHub (Sep 22, 2019):
Hi @deanishe, thanks for the PR.
I didn't make
idfield auto incremented because the ID will always be generated manually beforehand. However I guess it's fine to add it.I didn't know
TEXTfields must have specific length when indexed, so thanks for this. For future visitor, this can be found in MySQL documentation :And in MariaDB documentation :
Could you give me the documentation about
TEXTdefault values must be expressions ? In MySQL it simply said :While in MariaDB it said :
@deanishe commented on GitHub (Sep 23, 2019):
It threw an error when I tried to add a user. I figured
AUTO_INCREMENTwas the easiest way to solve that.https://dev.mysql.com/doc/refman/8.0/en/data-type-defaults.html#data-types-defaults-explicit
@RadhiFadlillah commented on GitHub (Sep 23, 2019):
Thanks, now the PR has been merged.
Oh boy, I really need to make unit tests ASAP.
@querwurzel commented on GitHub (Nov 9, 2020):
Still doesn't work for me for MySQL 5.7 .. as you already stated BLOB and TEXT must not have default values.
@deanishe I may create a PR for that matter. Still wondering if I'm the only MySQL user here ..
@MaaxGr commented on GitHub (Oct 22, 2021):
This error appears for shiori-Commands:
MySQL Version: 8.0.22