Skip to content

Commit e62fc92

Browse files
Try to fix with Laravel 12 compatibility
1 parent 3fe231c commit e62fc92

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/phpunit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: phpunit
22

3-
on: [ push, pull_request ]
3+
on: [ push ]
44

55
jobs:
66
build:

src/Console/Migrate.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@ protected function migrateTable(string $table, string $column): void
135135
$this->builder($this->source(), $table)
136136
->orderBy($column)
137137
->chunk(1000, function (Collection $items) use ($table) {
138-
$this->builder($this->target(), $table)->updateOrInsert(
139-
Arr::resolve($items)
140-
);
138+
$items = Arr::resolve($items);
139+
140+
$this->builder($this->target(), $table)->insert($items);
141141
});
142142

143143
$this->migrated[] = $table;

0 commit comments

Comments
 (0)