-
-
Notifications
You must be signed in to change notification settings - Fork 647
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9de5de2
commit 28b6c04
Showing
6 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
...milliseconds-type/2.1/config/packages/oskarstark_doctrine_datetime_milliseconds_type.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
services: | ||
_defaults: | ||
autowire: true | ||
|
||
OskarStark\Doctrine\Type\Doctrine\DBAL\Types\Type\DateTimeMillisecondsType: null | ||
|
||
doctrine: | ||
dbal: | ||
types: | ||
# 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 | ||
datetime: OskarStark\Doctrine\Type\Doctrine\DBAL\Types\Type\DateTimeMillisecondsType |
5 changes: 5 additions & 0 deletions
5
oskarstark/doctrine-datetime-milliseconds-type/2.1/manifest.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"copy-from-recipe": { | ||
"config/": "%CONFIG_DIR%/" | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...onds-platform/2.1/config/packages/oskarstark_doctrine_postgres_milliseconds_platform.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
services: | ||
_defaults: | ||
autowire: true | ||
|
||
OskarStark\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: OskarStark\Doctrine\Postgres\Platform\Doctrine\DBAL\Platforms\PostgreSQLMillisecondsPlatform |
5 changes: 5 additions & 0 deletions
5
oskarstark/doctrine-postgres-milliseconds-platform/2.1/manifest.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"copy-from-recipe": { | ||
"config/": "%CONFIG_DIR%/" | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...ema-listener/1.2/config/packages/oskarstark_doctrine_postgres_public_schema_listener.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
services: | ||
_defaults: | ||
autowire: true | ||
|
||
OskarStark\Doctrine\EventSubscriber\MigrationEventSubscriber: | ||
tags: | ||
- { name: doctrine.event_subscriber, connection: default } |
5 changes: 5 additions & 0 deletions
5
oskarstark/doctrine-postgres-public-schema-listener/1.2/manifest.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"copy-from-recipe": { | ||
"config/": "%CONFIG_DIR%/" | ||
} | ||
} |