From 0ee423c0794f9dd178a574a5ea0be3b472202d83 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 3 Mar 2022 14:03:40 -0500 Subject: [PATCH] membershipworks: Expand undersized Transaction.sid field --- .../migrations/0003_alter_transaction_sid.py | 17 +++++++++++++++++ membershipworks/models.py | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 membershipworks/migrations/0003_alter_transaction_sid.py diff --git a/membershipworks/migrations/0003_alter_transaction_sid.py b/membershipworks/migrations/0003_alter_transaction_sid.py new file mode 100644 index 0000000..6a13f96 --- /dev/null +++ b/membershipworks/migrations/0003_alter_transaction_sid.py @@ -0,0 +1,17 @@ +# Generated by Django 5.0 on 2023-12-20 06:03 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("membershipworks", "0002_remove_member_accepted_covid19_policy_and_more"), + ] + + operations = [ + migrations.AlterField( + model_name="transaction", + name="sid", + field=models.CharField(blank=True, max_length=256, null=True), + ), + ] diff --git a/membershipworks/models.py b/membershipworks/models.py index 44bc5b0..14f676d 100644 --- a/membershipworks/models.py +++ b/membershipworks/models.py @@ -274,7 +274,7 @@ class MemberFlag(BaseModel): class Transaction(BaseModel): - sid = models.CharField(max_length=27, null=True, blank=True) + sid = models.CharField(max_length=256, null=True, blank=True) member = models.ForeignKey( Member, on_delete=models.PROTECT,