File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
database/migrations/updates Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ return new class extends Migration {
99 // Extract the id from the key and add it to the attributes of the revision
1010 RevisionModel::query()
1111 ->whereJsonDoesntContainKey('attributes->id')
12- ->chunk (200, function ($revisions) {
12+ ->chunkById (200, function ($revisions) {
1313 foreach ($revisions as $revision) {
1414 $id = str($revision->key)
1515 ->afterLast('/')
@@ -29,7 +29,7 @@ return new class extends Migration {
2929 // Reverse the above
3030 RevisionModel::query()
3131 ->whereJsonContainsKey('attributes->id')
32- ->chunk (200, function ($revisions) {
32+ ->chunkById (200, function ($revisions) {
3333 foreach ($revisions as $revision) {
3434 $attributes = $revision->attributes;
3535 unset($attributes['id']);
You can’t perform that action at this time.
0 commit comments