On Tuesday, March 12, 2013 4:28:59 PM UTC+5:30, Avi wrote:
>
> Hello All,
>
> How do I change the heroku database( already existed ) table id to start 
> from say 1000?
>
> I tried with a fresh database on local & it works with this:- 
>             *execute "ALTER users orders AUTO_INCREMENT = 1000"*
>
 

>
> Sorry - this query - *execute "SELECT setval('users_id_seq', 1000)"*
>
   The above query is db already existed. 
 

>
>
> Thanks,
> Avinash
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/5JszMUGr27gJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to