-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data too long for column 'commit_sha' at row 1 #14545
Comments
|
Thats what i would have guessed as well. The only thing i noticed is that this always happens in rows where |
The comment for deleting a branch stores the branch name instead of commit_sha: Lines 747 to 753 in d3aa497
|
@jpraet that looks like it would be the cause. Ok I guess the question is where should the branch name be stored... |
Fix go-gitea#14545 Signed-off-by: Andrew Thornton <[email protected]>
Fix #14545 Signed-off-by: Andrew Thornton <[email protected]> Co-authored-by: 6543 <[email protected]> Co-authored-by: Lunny Xiao <[email protected]>
@lunny You removed the back port label from the PR, but will this issue be back ported? Still shows the label here. |
The issue is the migration really. Could make a doctor command to fix it? |
OK if we were to attempt to backport this we'd have to adjust the v169.go migration to only run if the commit_sha != '' otherwise any fixed delete branch comments would get overridden. So that would mean an additional PR to fix this along with additional doctor commands and or clever template manipulation to make things work. |
I think this in any case require a manual step, so backport will be breaking regardles what we do manipulating template would only break custom templates so if we realy want to backport, we should add more logic to the template |
we'd still need a PR on to master to change the migration. |
didn't we already have it in #14604 ?!? the |
that would need to become
|
yes if we really going to backport it ... |
[x]
):Description
When importing a database backup i get the following error message:
The backup was generated on the same gitea version using the following command converting it from sqlite to mysql:
At the time of the issue the table looked like this:
The insert statement in question looks like this:
I am not sure why this column contains something that looks like a description instead of a hash, but thats what it tries to do. The system running on sqlite was always used as intended and never manupilated or anything else.
The text was updated successfully, but these errors were encountered: