Truncate on PgSQL without resetting identity #9117
Unanswered
Kamhal24
asked this question in
Support Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Helo, I'm using Foundry to build my Fixtures in Symfony app, but the purge-with-truncate option does not reset autoincremented id.
I dig a bit and found, that I have to truncate with
RESTART IDENTITY
. Dug a bit deeper and find out, that PgPlatform has this piece of codeSo no option to set restart|continue identity.
Am I missing something, or is it really missing in the code and should be there?
I really hate the idea to write custom decorator over vendor package :)
Thank you in advance
BR Kamhal
Beta Was this translation helpful? Give feedback.
All reactions