mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 09:39:57 +00:00
14 lines
407 B
PHP
14 lines
407 B
PHP
<?php
|
|
|
|
// This is executed inside DatabaseMigrationService class/context
|
|
|
|
use \Grocy\Services\LocalizationService;
|
|
$localizationService = new LocalizationService(GROCY_CULTURE);
|
|
|
|
$db = $this->DatabaseService->GetDbConnection();
|
|
|
|
$defaultShoppingList = $this->Database->shopping_lists()->where('id = 1')->fetch();
|
|
$defaultShoppingList->update(array(
|
|
'name' => $localizationService->__t('Shopping list')
|
|
));
|