6543
6543
... `This is how sqlsequencereset in Django does it : SELECT setval(pg_get_serial_sequence("",'id'), coalesce(max("id"), 1), max("id") IS NOT null) FROM ""; –`... https://stackoverflow.com/questions/244243/how-to-reset-postgres-primary-key-sequence-when-it-falls-out-of-sync
If so it should be integrated into xormmigrate ... but it should be part of woodpecker as else it easely get out of sync! also I would not know how...
Well somebody can create a generic tool and mayintain it ... but I prefere to have this function build in. As a lot of other tools (nextcloud, gitea, synapse ......
PS: a generic tool has it's downsides. Best example is that different orm's handle types different on different DBMS ... so e.g. a BOOL could be an INT to conert....
now it's code generated so there should be no problem with maintenance burden
well the "separate tool" is currently this pulls preview images ... witch I use for my migrations. If one does pick it up and make a nice tool then this...
well **I** personally do wana get it merged ... but there is no majority for it
well that's as majour as the build-in function could go. as everybody want to just have an external tool ... well I did the migrations I had to.
https://stackoverflow.com/a/6283843 this solution prints out the merge wich can be also displaied in our web editor to resolve this ... ?
@UBowt571 until now ... yes :/