Skip to content

Commit bb330a6

Browse files
author
dmitriy
committed
added uuid sql helper functions, cron job for cleanup logs
1 parent fbe88d2 commit bb330a6

File tree

20 files changed

+789
-896
lines changed

20 files changed

+789
-896
lines changed

.env

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,10 @@ CORS_ALLOW_ORIGIN=^https?://localhost(:[0-9]+)?$
5151
# how many days health history will be stored in the db
5252
DATABASE_HEALTH_HISTORY_DAYS=7
5353

54+
# how many days log login history will be stored in the db
55+
DATABASE_LOG_LOGIN_HISTORY_DAYS=90
56+
57+
# how many days log request history will be stored in the db
58+
DATABASE_LOG_REQUEST_HISTORY_DAYS=15
59+
5460
REQUEST_LOG_SENSITIVE_PROPERTIES='["password", "token", "authorization", "cookie"]'

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ migrate:
130130
@make exec cmd="php bin/console doctrine:migrations:migrate --no-interaction --all-or-nothing"
131131
@make exec cmd="php bin/console doctrine:migrations:migrate --no-interaction --all-or-nothing --env=test"
132132

133+
migrate-cron-jobs:
134+
@make exec cmd="php bin/console scheduler:cleanup-logs"
135+
133136
fixtures:
134137
@make exec cmd="php bin/console doctrine:fixtures:load --env=test"
135138

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"ext-pdo_mysql": "*",
3434
"ext-amqp": "*",
3535
"antishov/doctrine-extensions-bundle": "^1.4",
36+
"beberlei/doctrineextensions": "^1.2",
3637
"doctrine/doctrine-migrations-bundle": "^2.1",
3738
"easycorp/easy-log-handler": "1.0.*",
3839
"jmose/command-scheduler-bundle": "^2.2",

0 commit comments

Comments
 (0)