Skip to content

Commit b598b49

Browse files
Try to fix with Laravel 12 compatibility
1 parent 8fd5ac0 commit b598b49

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: src/Console/Migrate.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ protected function migrateTable(string $table, string $column): void
137137
$this->builder($this->source(), $table)
138138
->orderBy($column)
139139
->chunk(1000, function (Collection $items) use ($table) {
140-
$items = Arr::resolve($items);
141-
142-
$this->builder($this->target(), $table)->insertOrIgnore($items);
140+
$this->builder($this->target(), $table)->insert(
141+
Arr::resolve($items)
142+
);
143143
});
144144

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

Diff for: src/Database/Builder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function getAllTables(): array
3737
{
3838
$tables = method_exists($this->schema(), 'getAllTables')
3939
? $this->schema()->getAllTables()
40-
: $this->schema()->getTables();
40+
: $this->schema()->getTables($this->schema()->getCurrentSchemaName());
4141

4242
$key = $this->tableNameColumn();
4343

0 commit comments

Comments
 (0)