mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
fix: wrong foreign key name
This commit is contained in:
parent
c4cffcc2e7
commit
964e1df26f
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ return new class extends Migration
|
|||
$table->string('song_id', 36)->change();
|
||||
|
||||
if (DB::getDriverName() !== 'sqlite') {
|
||||
$table->dropForeign('playlist_song_song_id_foreign');
|
||||
$table->dropForeign('interactions_song_id_foreign');
|
||||
}
|
||||
|
||||
$table->foreign('song_id')->references('id')->on('songs')->cascadeOnDelete()->cascadeOnUpdate();
|
||||
|
|
Loading…
Reference in a new issue