Skip to content

Commit 84f38d0

Browse files
committed
Fix provider_config migration
1 parent ec7d6e3 commit 84f38d0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

llmstack/base/migrations/0007_populate_provider_configs.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import logging
44

5-
from django.db import migrations
5+
from django.db import migrations, models
66

77
logger = logging.getLogger(__name__)
88

@@ -77,5 +77,12 @@ class Migration(migrations.Migration):
7777
]
7878

7979
operations = [
80+
migrations.AddField(
81+
model_name="defaultprofile",
82+
name="_provider_configs",
83+
field=models.JSONField(
84+
blank=True, default=dict, help_text="Encrypted providers config to use with processors", null=True
85+
),
86+
),
8087
migrations.RunPython(populate_provider_configs, reverse_code=migrations.RunPython.noop),
8188
]

0 commit comments

Comments
 (0)