Re: BigInt / Long for Auto Incrementing PK

2014-08-01 Thread Nicholas Haggmark
Hi guys,

I was aware that you could set the BigInt model type to PK, but there 
doesn't appear to be a good way to make it auto-increment. Also, will FK 
columns introspect it to a long correctly?

On Friday, August 1, 2014 11:21:14 AM UTC-4, Collin Anderson wrote:
>
> Hi, you can use a bigintegerfield 
>>  
>> and set it as primary-key 
>> .
>>
>
> But will it auto-increment when you save? 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e17d478b-974d-45be-8476-8a06b57c2abe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: BigInt / Long for Auto Incrementing PK

2014-08-01 Thread Collin Anderson

>
> Hi, you can use a bigintegerfield 
>  
> and set it as primary-key 
> .
>

But will it auto-increment when you save? 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/14aeead1-50f3-4da8-ad6e-6e45350476be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: BigInt / Long for Auto Incrementing PK

2014-08-01 Thread Stefano Probst
Hi, you can use a bigintegerfield 
 
and set it as primary-key 
.

Am Donnerstag, 31. Juli 2014 17:34:17 UTC+2 schrieb Nicholas Haggmark:
>
> Hi Guys,
>
> I need to create a couple of tables with 64-bit int data type primary 
> keys.  I've been googling around and I haven't seen anything really recent 
> in regards to this.  Does Django 1.7 support auto incrementing 64-bit int 
> primary keys?  If not out of the box, does anyone have a reliable solution 
> for this?
>
> Thanks!
>
> Nick Haggmark
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/165fba9c-a459-43ae-b5e3-876bfc5d7c39%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


BigInt / Long for Auto Incrementing PK

2014-07-31 Thread Nicholas Haggmark
Hi Guys,

I need to create a couple of tables with 64-bit int data type primary keys. 
 I've been googling around and I haven't seen anything really recent in 
regards to this.  Does Django 1.7 support auto incrementing 64-bit int 
primary keys?  If not out of the box, does anyone have a reliable solution 
for this?

Thanks!

Nick Haggmark

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5efe1c50-8a63-4a00-86e6-e83dea9640a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.