Skip to content

Commit 3918dcf

Browse files
[Documentation] Adding link to Postgres upgrade article (#11257)
* [Documentation] Adding link to Postgres upgrade article * Update UPGRADE.md * Update UPGRADE.md
1 parent bfb033f commit 3918dcf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

UPGRADE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ so `$targetEntity` is a first argument now. This change affects only non-named a
1313

1414
When using the `AUTO` strategy to let Doctrine determine the identity generation mechanism for
1515
an entity, and when using `doctrine/dbal` 4, PostgreSQL now uses `IDENTITY`
16-
instead of `SEQUENCE`. When upgrading from ORM 2.x and preference is on keeping
17-
the `SEQUENCE` based identity generation, then configure the ORM this way:
18-
16+
instead of `SEQUENCE` or `SERIAL`.
17+
* If you want to upgrade your existing tables to identity columns, you will need to follow [migration to identity columns on PostgreSQL](https://www.doctrine-project.org/projects/doctrine-dbal/en/4.0/how-to/postgresql-identity-migration.html)
18+
* If you want to keep using SQL sequences, you need to configure the ORM this way:
1919
```php
2020
use Doctrine\DBAL\Platforms\PostgreSQLPlatform;
2121
use Doctrine\ORM\Configuration;

0 commit comments

Comments
 (0)