Эх сурвалжийг харах

[core] Shrink char field max length

This fixes Oracle issues with the default charset: AL16UTF16.
Max byte length of NVARCHAR2 type is 4000. 2047 characters
would consume 4094 bytes of space. We should support
up to 4 byte charsets. So bringing the length of these fields
down to 1000 => 4000 maximum bytes consumed.
Abraham Elmahrek 11 жил өмнө
parent
commit
3e1a326cc6

+ 3 - 3
desktop/core/ext-py/django-openid-auth-0.5/django_openid_auth/models.py

@@ -32,7 +32,7 @@ from django.db import models
 
 
 
 
 class Nonce(models.Model):
 class Nonce(models.Model):
-    server_url = models.CharField(max_length=2047)
+    server_url = models.CharField(max_length=1000)
     timestamp = models.IntegerField()
     timestamp = models.IntegerField()
     salt = models.CharField(max_length=40)
     salt = models.CharField(max_length=40)
 
 
@@ -41,7 +41,7 @@ class Nonce(models.Model):
 
 
 
 
 class Association(models.Model):
 class Association(models.Model):
-    server_url = models.TextField(max_length=2047)
+    server_url = models.TextField(max_length=1000)
     handle = models.CharField(max_length=255)
     handle = models.CharField(max_length=255)
     secret = models.TextField(max_length=255) # Stored base64 encoded
     secret = models.TextField(max_length=255) # Stored base64 encoded
     issued = models.IntegerField()
     issued = models.IntegerField()
@@ -55,4 +55,4 @@ class Association(models.Model):
 class UserOpenID(models.Model):
 class UserOpenID(models.Model):
     user = models.ForeignKey(User)
     user = models.ForeignKey(User)
     claimed_id = models.CharField(max_length=255, unique=True)
     claimed_id = models.CharField(max_length=255, unique=True)
-    display_id = models.TextField(max_length=2047)
+    display_id = models.TextField(max_length=1000)