-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(DB): update tables_row_sleeves' sequence after migration #1049
Conversation
I would say no, it wont fix #1029 given my last comment and rows that are left in the I mean given I deleted the Tables (from UI interface), but the rows are kept in |
That's great input! I'd read then both table's IDs and take the max value. |
May you should also figure out why rows of deleted Tables are left in may |
Definitely, but would separate it from this context. |
So that is, because |
Repair steps takes both IDs now into account. |
Signed-off-by: Arthur Schiwon <[email protected]>
/backport to stable0.7 |
fixes #1029
On (at least) Postgres the migration logic from 0.6.6 to 0.7 inserts rows into oc_tables_row_sleeves with the id parameter set. It is an autoincrement column, but when the ids are specified manually, the backing sequence is not updated automatically. It then leads to constraint violation when adding new rows.
Doctrine does not offer much to interact with sequences, so here is a fall back a manual query that follows SQL standard.