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
ALTERSEQUENCE IF EXISTS internal_metadata_id_seq RESTART WITH 42;
The immediate solution is to make sure this and other SQL db import files are not run when hibernate.ddl-auto is set to something other than create-drop.
Describe the bug
I've been seeing some weird problems with the primary key synchronization.
Errors like:
Relevant parts of the database look like:
This is wrong, the id sequence should be 45.
Any attempt to create new metadata would result in a duplicate key violation because 42 already exists.
This is temporarily fixed by doing something like:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Should always be able to create new metadata without the primary keys being behind.
The text was updated successfully, but these errors were encountered: