mirror of
https://github.com/Kovah/LinkAce.git
synced 2025-01-18 05:38:40 +01:00
Minor change for v0.0.25 migration
This commit is contained in:
parent
c327dbef41
commit
b60e70bdad
@ -19,7 +19,7 @@ class MoveCategoryToListTable extends Migration
|
||||
DB::table('categories')->whereNotNull('parent_category')->get()->each(function ($item) {
|
||||
$parent = DB::table('categories')->where('id', $item->parent_category)->first();
|
||||
DB::table('categories')->where('id', $item->id)->update([
|
||||
'name' => $parent->name . ' -> ' . $item->name,
|
||||
'name' => $parent->name . ' > ' . $item->name,
|
||||
]);
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user