Skip to content

Commit

Permalink
minor #1400 Update the database contents (javiereguiluz)
Browse files Browse the repository at this point in the history
This PR was squashed before being merged into the main branch.

Discussion
----------

Update the database contents

When you browse this app, you see this:

<img width="723" alt="database-before" src="https://user-images.githubusercontent.com/73419/218479596-897e5859-16ed-4fa0-a5c2-4e5e29eb8fec.png">

These super old dates hurt the image and reputation of the project, because it looks like the project is no longer maintained.

So, let's regenerate the database contents to update the blog post dates:

<img width="901" alt="database-after" src="https://user-images.githubusercontent.com/73419/218479814-0158ce4f-7c6b-4d52-811e-ec3e9c1307ff.png">

Commits
-------

6a35fe4 Update the database contents
  • Loading branch information
javiereguiluz committed Feb 14, 2023
2 parents d93d6f6 + 6a35fe4 commit c31e074
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified data/database.sqlite
Binary file not shown.
2 changes: 1 addition & 1 deletion src/DataFixtures/AppFixtures.php
Expand Up @@ -146,7 +146,7 @@ private function getPostData(): array
$this->slugger->slug($title)->lower(),
$this->getRandomText(),
$this->getPostContent(),
new \DateTime('now - '.$i.'days'),
(new \DateTime('now - '.$i.'days'))->setTime(random_int(8, 17), random_int(7, 49), random_int(0, 59)),
// Ensure that the first post is written by Jane Doe to simplify tests
$user,
$this->getRandomTags(),
Expand Down

0 comments on commit c31e074

Please sign in to comment.