mirror of
https://github.com/koel/koel.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #1725] Cannot change column 'id': used in a foreign key constraint 'koel/interactions_song_id_foreign' of table 'koel/interactions' #948
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#948
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 @axelrindle on GitHub (Nov 22, 2023).
Original GitHub issue: https://github.com/koel/koel/issues/1725
Describe the bug
Running
php artisan koel:initwithin the Docker container results in a migration failure.To reproduce
Steps to reproduce the behavior:
1 . Start Docker Image
phanan/koel:6.11.22. Attach to it
3. Run
php artisan koel:initExpected behavior
A clear and concise description of what you expected to happen.
Stacktrace
Click to expand
PDOException: SQLSTATE[HY000]: General error: 1833 Cannot change column 'id': used in a foreign key constraint 'koel/interactions_song_id_foreign' of table 'koel/interactions'Environment
phanan/koel:6.11.2@jSML4ThWwBID69YC commented on GitHub (Dec 26, 2023):
I am seeing a similar error on installation. Due to this, Koel can not be installed.
Environment
@phanan commented on GitHub (Dec 27, 2023):
Hmm, I'm using MariaDB 10.11.12 and this problem doesn't exist at all:
How viable is it if I ask you to try this specific DB version?
@jSML4ThWwBID69YC commented on GitHub (Dec 28, 2023):
Hello,
I setup MariaDB 10.11.6 with Galera. Unfortunately, it fails with the same error.
2023-12-28 0:11:16 2177 [Warning] WSREP: Ignoring error 'Cannot change column 'id': used in a foreign key constraint 'CENSORED/interactions_song_id_foreign' of table 'CENSORED/interactions'' on query. Default database: 'CENSORED'. Query: 'ALTER TABLE songs CHANGE id id VARCHAR(36) CHARACTER SET utf8mb4 NOT NULL COLLATEutf8mb4_unicode_ci', Error_code: 1833@phanan commented on GitHub (Dec 28, 2023):
Weird, I'll take a look.