mirror of
https://github.com/koel/koel.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #1774] Database migration fails on v7.0.0 'owner_id': used in a foreign key constraint 'songs_owner_id_foreign' #976
Labels
No labels
Authentication
Dependencies
Documentation
Feature Request
Flac
Help Wanted
Installation/Setup
Integration
Mobile
PR Welcome
Pending Release
Performance
Playlist
S3
Search
Sync
[Pri] Low
[Pri] Normal
[Status] Keep Open
[Status] Needs Author Reply
[Status] Needs Review
[Status] Stale
[Status] Will Implement
[Type] Blessed
[Type] Bug
[Type] Duplicate
[Type] Enhancement
[Type] Help Request
[Type] Question
[Type] Task
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/koel-koel#976
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 @nebulade on GitHub (Jul 10, 2024).
Original GitHub issue: https://github.com/koel/koel/issues/1774
Describe the bug
Updating from 6.12.1 to 7.0.0 fails during database migration with:
This happens on an instance which has one user and one song uploaded. A fresh 7.0.0 instance works fine.
Environment
Additional context
Crash logs from laravel.log:
@phanan commented on GitHub (Jul 10, 2024):
Thanks for the report. What's the DB you're using?
@nebulade commented on GitHub (Jul 10, 2024):
Oh sorry didn't mention that. This is on mysql v8.
@phanan commented on GitHub (Jul 10, 2024):
If you remove line 31 in
/app/code/database/migrations/2024_01_03_104241_support_multi_tenant.phpand run the migration, what'll happen?@nebulade commented on GitHub (Jul 11, 2024):
Thanks for resolving this so quickly. I can confirm, removing that line fixed the issue.
@phanan commented on GitHub (Jul 11, 2024):
Glad it works!