You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently postgres jobs are failing on PHP 8.0 & 8.2 with below error:
...
171) CakephpFixtureFactories\Test\TestCase\Scenario\FixtureScenarioTest::testLoadScenario with data set #2 ('TenAustralianAuthors', 10)
CakephpFixtureFactories\Error\FixtureScenarioException: Error in Factory CakephpFixtureFactories\Test\Factory\AuthorFactory.
Message: SQLSTATE[428C9]: <<Unknown error>>: 7 ERROR: cannot insert a non-DEFAULT value into column "id"
DETAIL: Column "id" is an identity column defined as GENERATED ALWAYS.
HINT: Use OVERRIDING SYSTEM VALUE to override.
...
It is impossible with the actual phinx version to overwrite ID values.
See the issue here: cakephp/phinx#2193
A solution would be to add a ->disablePrimaryKeyOffset() to by-pass the random setting of the primary key and let the SQL engine manage the assignment.
ishanvyas22
added a commit
to ishanvyas22/cakephp-fixture-factories
that referenced
this issue
May 10, 2023
Currently postgres jobs are failing on PHP 8.0 & 8.2 with below error:
This is due to changes of phinx package in version 0.13.0 (PR: cakephp/phinx#2085).
The text was updated successfully, but these errors were encountered: