Explorar o código

HUE-8371 [core] Shrink char field max length for Oracle DB support

While running hue migrate command, Oracle DB fails with
django.db.utils.DatabaseError: ORA-00910: specified length too long for its datatype

This fix will truncate charfield size from 2047 chars to 2000 chars.
Prakash Ranade %!s(int64=7) %!d(string=hai) anos
pai
achega
f85df06f4f

+ 4 - 4
desktop/core/ext-py/django-openid-auth-0.14/django_openid_auth/models.py

@@ -35,7 +35,7 @@ from django.contrib.auth.models import Permission
 
 
 class Nonce(models.Model):
-    server_url = models.CharField(max_length=2047)
+    server_url = models.CharField(max_length=2000)
     timestamp = models.IntegerField()
     salt = models.CharField(max_length=40)
 
@@ -44,7 +44,7 @@ class Nonce(models.Model):
 
 
 class Association(models.Model):
-    server_url = models.TextField(max_length=2047)
+    server_url = models.TextField(max_length=2000)
     handle = models.CharField(max_length=255)
     secret = models.TextField(max_length=255)  # Stored base64 encoded
     issued = models.IntegerField()
@@ -57,8 +57,8 @@ class Association(models.Model):
 
 class UserOpenID(models.Model):
     user = models.ForeignKey(settings.AUTH_USER_MODEL)
-    claimed_id = models.TextField(max_length=2047)
-    display_id = models.TextField(max_length=2047)
+    claimed_id = models.TextField(max_length=2000)
+    display_id = models.TextField(max_length=2000)
 
     class Meta:
         permissions = (