-
Notifications
You must be signed in to change notification settings - Fork 415
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: convert CharFields to TextFields for FeatureImport / FeatureExpo…
…rt models (#3720)
- Loading branch information
1 parent
b8d0736
commit 6bebcef
Showing
2 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
api/features/import_export/migrations/0004_convert_data_fields_to_text_field.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Generated by Django 3.2.25 on 2024-04-04 17:07 | ||
|
||
from django.db import migrations, models | ||
|
||
from features.import_export.constants import ( | ||
MAX_FEATURE_EXPORT_SIZE, | ||
MAX_FEATURE_IMPORT_SIZE, | ||
) | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("features_import_export", "0003_flagsmithonflagsmithfeatureexport"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="featureexport", | ||
name="data", | ||
field=models.TextField( | ||
blank=True, max_length=MAX_FEATURE_EXPORT_SIZE, null=True | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="featureimport", | ||
name="data", | ||
field=models.TextField(max_length=MAX_FEATURE_IMPORT_SIZE), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters