Laravel postgresql sequence in migration not working #39032
Unanswered
reedius-dhairya
asked this question in
Q&A
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.
-
Description:
I am setting sequence in laravel migration
After migration when i am checking
If i run below same query after migration in
laravel tinker
or inseeder
then its work.DB::select("select setval(pg_get_serial_sequence('businesses', 'business_id'), 1000000000 )");
So the main question is that why DB::select("select setval(pg_get_serial_sequence('businesses', 'business_id'), 1000000000 )") not working at the time of migration?
Steps To Reproduce:
Beta Was this translation helpful? Give feedback.
All reactions