mirror of
https://github.com/grocy/grocy.git
synced 2026-04-06 12:56:15 +02:00
14 lines
393 B
PHP
14 lines
393 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(array(
|
|
'name' => $localizationService->__t('Shopping list')
|
|
));
|