fix: traiter le premier lot de tickets
Refs #4 #5 #6 #9 #12 #16 #18 #20
This commit is contained in:
parent
3f82acbbd8
commit
04cbe54dd1
14 changed files with 87 additions and 12 deletions
|
|
@ -375,6 +375,16 @@ final class DemoDataService
|
|||
$animalIds[$name] = (int) $db->lastInsertId();
|
||||
}
|
||||
|
||||
$publish = $db->prepare(
|
||||
"UPDATE animals SET website_published=1,website_description=? WHERE id=? AND adoption_availability='available'",
|
||||
);
|
||||
foreach (['Moka', 'Pixel', 'Caramel', 'Plume', 'Lune', 'Soleil'] as $name) {
|
||||
$publish->execute([
|
||||
'Fiche fictive publiée pour découvrir le fonctionnement du site public de démonstration.',
|
||||
$animalIds[$name],
|
||||
]);
|
||||
}
|
||||
|
||||
$db->prepare('INSERT INTO litters(mother_id,birth_date,notes) VALUES(?,?,?)')->execute([
|
||||
$animalIds['Plume'],
|
||||
$animals[6][3],
|
||||
|
|
|
|||
Loading…
Reference in a new issue