From 7908c70a2a3567d0f56c9cc162f2ab77ea21dfa3 Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Wed, 20 Apr 2022 09:12:41 +0200 Subject: [PATCH] Add `datana-gmbh/doctrine-postgres-milliseconds-platform` (#1394) * Add datana-gmbh/doctrine-postgresql-milliseconds-platform * Fix. * Dfix --- ...tana_doctrine_postgres_milliseconds_platform.yaml | 12 ++++++++++++ .../1.0/manifest.json | 5 +++++ 2 files changed, 17 insertions(+) create mode 100644 datana-gmbh/doctrine-postgres-milliseconds-platform/1.0/config/packages/datana_doctrine_postgres_milliseconds_platform.yaml create mode 100644 datana-gmbh/doctrine-postgres-milliseconds-platform/1.0/manifest.json diff --git a/datana-gmbh/doctrine-postgres-milliseconds-platform/1.0/config/packages/datana_doctrine_postgres_milliseconds_platform.yaml b/datana-gmbh/doctrine-postgres-milliseconds-platform/1.0/config/packages/datana_doctrine_postgres_milliseconds_platform.yaml new file mode 100644 index 00000000..3f1b3cce --- /dev/null +++ b/datana-gmbh/doctrine-postgres-milliseconds-platform/1.0/config/packages/datana_doctrine_postgres_milliseconds_platform.yaml @@ -0,0 +1,12 @@ +services: + _defaults: + autowire: true + + Datana\Doctrine\Postgres\Platform\Doctrine\DBAL\Platforms\PostgreSQLMillisecondsPlatform: null + +doctrine: + dbal: + # We want to store DateTime objects with milliseconds + # The solution is built on https://github.com/doctrine/dbal/issues/2873#issuecomment-701052412 + # but instead of using microseconds we use milliseconds + platform_service: Datana\Doctrine\Postgres\Platform\Doctrine\DBAL\Platforms\PostgreSQLMillisecondsPlatform diff --git a/datana-gmbh/doctrine-postgres-milliseconds-platform/1.0/manifest.json b/datana-gmbh/doctrine-postgres-milliseconds-platform/1.0/manifest.json new file mode 100644 index 00000000..e164c6e6 --- /dev/null +++ b/datana-gmbh/doctrine-postgres-milliseconds-platform/1.0/manifest.json @@ -0,0 +1,5 @@ +{ + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } +}