grocy/migrations/0063.php
Bernd Bestel f4d5f21832
Squashed commit
Fixed recipe ingredient costs/calories calculation when having different QUs and when only_check_single_unit_in_stock is set (fixes #2529)
Added a new column "Product picture" on /products (closes #2640)
Fixed partly opening stock entries stock_id handling (fixes #2391)
2025-01-13 17:41:08 +01:00

12 lines
346 B
PHP

<?php
// This is executed inside DatabaseMigrationService class/context
$localizationService = $this->getLocalizationService();
$db = $this->getDatabaseService()->GetDbConnection();
$defaultShoppingList = $db->shopping_lists()->where('id = 1')->fetch();
$defaultShoppingList->update([
'name' => $localizationService->__t('Shopping list')
]);