mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 01:32:38 +00:00
15 lines
388 B
PHP
15 lines
388 B
PHP
<?php
|
|
|
|
// This is executed inside DatabaseMigrationService class/context
|
|
|
|
use Grocy\Services\LocalizationService;
|
|
|
|
$localizationService = $this->getLocalizationService();
|
|
|
|
$db = $this->getDatabaseService()->GetDbConnection();
|
|
|
|
$defaultShoppingList = $db->shopping_lists()->where('id = 1')->fetch();
|
|
$defaultShoppingList->update([
|
|
'name' => $localizationService->__t('Shopping list')
|
|
]);
|