mirror of
https://github.com/flarum/core.git
synced 2025-07-23 09:41:26 +02:00
Fix more incompatibilities with Laravel 5.5
This commit is contained in:
@@ -20,7 +20,7 @@ return [
|
||||
});
|
||||
|
||||
// Store slugs for existing discussions
|
||||
$schema->getConnection()->table('discussions')->chunk(100, function ($discussions) use ($schema) {
|
||||
$schema->getConnection()->table('discussions')->chunkById(100, function ($discussions) use ($schema) {
|
||||
foreach ($discussions as $discussion) {
|
||||
$schema->getConnection()->table('discussions')->where('id', $discussion->id)->update([
|
||||
'slug' => Str::slug($discussion->title)
|
||||
|
@@ -58,7 +58,8 @@ class DatabaseMigrationRepository implements MigrationRepositoryInterface
|
||||
return $this->table()
|
||||
->where('extension', $extension)
|
||||
->orderBy('migration', 'asc')
|
||||
->pluck('migration');
|
||||
->pluck('migration')
|
||||
->toArray();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user