Skip to content

Commit 2ffc217

Browse files
author
Andrey Helldar
authored
Update Migrate.php
1 parent 0dfddb5 commit 2ffc217

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Console/Migrate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ protected function migrateTable(string $table, string $column): void
135135
->when(
136136
$this->isSkippable($table, $column),
137137
function ($query) use ($table, $column) {
138-
$lastRecord = $this->builder($this->target(), $table)->max($column);
138+
$lastRecord = $this->builder($this->target(), $table)->max($column) ?: 0;
139139

140140
Log::info('last record: ' . $lastRecord);
141141

0 commit comments

Comments
 (0)