Closed
Description
Since upgrading to PostgreSQL 10 I have an error in my projects using Doctrine when I trying to generate migrations or just check the schema difference:
$ sf doc:sche:up --dump-sql
[Doctrine\DBAL\Exception\InvalidFieldNameException]
An exception occurred while executing 'SELECT min_value, increment_by FROM "admin"."acl_classes_id_seq"':
SQLSTATE[42703]: Undefined column: 7 ERROR: column "min_value" does not exist
LINE 1: SELECT min_value, increment_by FROM "admin"."acl_classes_id_...
^
[Doctrine\DBAL\Driver\PDOException]
SQLSTATE[42703]: Undefined column: 7 ERROR: column "min_value" does not exist
LINE 1: SELECT min_value, increment_by FROM "admin"."acl_classes_id_...
^
[PDOException]
SQLSTATE[42703]: Undefined column: 7 ERROR: column "min_value" does not exist
LINE 1: SELECT min_value, increment_by FROM "admin"."acl_classes_id_...
^
doctrine:schema:update [--complete] [--dump-sql] [-f|--force] [--em [EM]]
Seems like it's related to nextcloud/server#5930 where @justin-sleep wrote:
This happens specifically because of changes to how PostgreSQL 10 handles sequence metadata.