Added data_generation_scripts

This commit is contained in:
Bernd Bestel
2021-10-02 17:39:36 +02:00
parent 282168f92c
commit 01ddeb4dfd
3 changed files with 43 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
<?php
// This is executed inside DatabaseMigrationService class/context
use Grocy\Services\RecipesService;
$recipesService = RecipesService::getInstance();
for ($i = 1; $i <= 87; $i++)
{
$recipesService->CopyRecipe(1);
$recipesService->CopyRecipe(2);
$recipesService->CopyRecipe(3);
$recipesService->CopyRecipe(4);
$recipesService->CopyRecipe(5);
}