2019-04-20 17:04:40 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
// This is executed inside DatabaseMigrationService class/context
|
|
|
|
|
|
|
|
|
|
use \Grocy\Services\LocalizationService;
|
2020-03-01 23:47:47 +07:00
|
|
|
$localizationService = $this->getLocalizationService();
|
2019-04-20 17:04:40 +02:00
|
|
|
|
2020-03-01 23:47:47 +07:00
|
|
|
$db = $this->getDatabaseService()->GetDbConnection();
|
2019-04-20 17:04:40 +02:00
|
|
|
|
2020-03-01 23:47:47 +07:00
|
|
|
$defaultShoppingList = $db->shopping_lists()->where('id = 1')->fetch();
|
2019-04-20 17:04:40 +02:00
|
|
|
$defaultShoppingList->update(array(
|
2019-05-02 20:20:18 +02:00
|
|
|
'name' => $localizationService->__t('Shopping list')
|
2019-04-20 17:04:40 +02:00
|
|
|
));
|