Skip to content

Commit f441dd2

Browse files
committed
Increase feature size limit to 2 MB
1 parent e2853d7 commit f441dd2

File tree

3 files changed

+47
-1
lines changed

3 files changed

+47
-1
lines changed

api/features/feature_states/models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Meta:
2323
)
2424
boolean_value = models.BooleanField(null=True, blank=True)
2525
integer_value = models.IntegerField(null=True, blank=True)
26-
string_value = models.CharField(null=True, max_length=20000, blank=True)
26+
string_value = models.CharField(null=True, max_length=2_000_000, blank=True)
2727

2828
@property
2929
def value(self) -> typing.Union[str, int, bool]:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Generated by Django 3.2.25 on 2024-08-01 21:09
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('features', '0064_fix_feature_help_text_typo'),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name='featurestatevalue',
15+
name='string_value',
16+
field=models.CharField(blank=True, max_length=2000000, null=True),
17+
),
18+
migrations.AlterField(
19+
model_name='historicalfeaturestatevalue',
20+
name='string_value',
21+
field=models.CharField(blank=True, max_length=2000000, null=True),
22+
),
23+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Generated by Django 3.2.25 on 2024-08-01 21:09
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('multivariate', '0007_alter_boolean_values'),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name='historicalmultivariatefeatureoption',
15+
name='string_value',
16+
field=models.CharField(blank=True, max_length=2000000, null=True),
17+
),
18+
migrations.AlterField(
19+
model_name='multivariatefeatureoption',
20+
name='string_value',
21+
field=models.CharField(blank=True, max_length=2000000, null=True),
22+
),
23+
]

0 commit comments

Comments
 (0)