mirror of
https://github.com/flarum/framework.git
synced 2024-11-30 13:36:10 +08:00
Fix more incompatibilities with Laravel 5.5
This commit is contained in:
parent
54ecd48b72
commit
b9f68921b7
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user