mirror of
https://github.com/koel/koel
synced 2024-11-24 05:03:05 +00:00
fix: never use Eloquent in migration
This commit is contained in:
parent
c656eac5a5
commit
9f414be1f3
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ return new class extends Migration {
|
|||
$table->timestamps();
|
||||
});
|
||||
|
||||
Playlist::query()->get()->each(static function (Playlist $playlist): void {
|
||||
DB::table('playlists')->get()->each(static function ($playlist): void {
|
||||
DB::table('playlist_song')->where('playlist_id', $playlist->id)->update([
|
||||
'user_id' => $playlist->user_id,
|
||||
'created_at' => now(),
|
||||
|
|
Loading…
Reference in a new issue