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
Wouldn´t it be more correct to use once() for database migrations? Deploying to multiple servers this (seems to) lead to an error when running on two hosts:
[console] Error thrown while running command "doctrine:migrations:migrate --allow-no-migration --no-interaction". Message: "An exception occurred while executing a query: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'DoctrineMigrations\Version2023...' for key 'migration_versions.PRIMARY'" ["exception" => Doctrine\DBAL\Exception\UniqueConstraintViolationException { …},"command" => "doctrine:migrations:migrate --allow-no-migration --no-interaction","message" => "An exception occurred while executing a query: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'DoctrineMigrations\Version2023...' for key 'migration_versions.PRIMARY'"]
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Wouldn´t it be more correct to use
once()
for database migrations? Deploying to multiple servers this (seems to) lead to an error when running on two hosts:[console] Error thrown while running command "doctrine:migrations:migrate --allow-no-migration --no-interaction". Message: "An exception occurred while executing a query: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'DoctrineMigrations\Version2023...' for key 'migration_versions.PRIMARY'" ["exception" => Doctrine\DBAL\Exception\UniqueConstraintViolationException { …},"command" => "doctrine:migrations:migrate --allow-no-migration --no-interaction","message" => "An exception occurred while executing a query: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'DoctrineMigrations\Version2023...' for key 'migration_versions.PRIMARY'"]
Beta Was this translation helpful? Give feedback.
All reactions