1
0
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:
Kovah 2019-10-29 17:28:34 +01:00
parent c327dbef41
commit b60e70bdad
No known key found for this signature in database
GPG Key ID: AAAA031BA9830D7B

View File

@ -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,
]);
});