Skip to content

Commit

Permalink
bug: accomodate increased string size from cbc encryption
Browse files Browse the repository at this point in the history
  • Loading branch information
Jtang-1 committed Feb 19, 2025
1 parent 2ce509c commit 7c9637f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from django.db import migrations
from django.db import migrations, models
from django.db.migrations import RunPython

from corehq.motech.const import ALGO_AES, ALGO_AES_CBC
Expand Down Expand Up @@ -51,6 +51,11 @@ class Migration(migrations.Migration):
]

operations = [
migrations.AlterField(
model_name='tableauconnectedapp',
name='encrypted_secret_value',
field=models.CharField(max_length=128),
),
RunPython(migrate_tableau_connected_app_secret_value,
reverse_code=revert_tableau_connected_app_secret_value),
]
2 changes: 1 addition & 1 deletion corehq/apps/reports/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def for_user(cls, domain, couch_user):
class TableauConnectedApp(models.Model):
app_client_id = models.CharField(max_length=64)
secret_id = models.CharField(max_length=64)
encrypted_secret_value = models.CharField(max_length=64)
encrypted_secret_value = models.CharField(max_length=128)
server = models.OneToOneField(TableauServer, on_delete=models.CASCADE)

def __str__(self):
Expand Down

0 comments on commit 7c9637f

Please sign in to comment.