:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(mcp_store): add db_default to MCPServerTemplate category column (#70416)
Chris Volzerb24daf2d636f
diff --git a/products/mcp_store/backend/migrations/0013_alter_mcpservertemplate_category_db_default.py b/products/mcp_store/backend/migrations/0013_alter_mcpservertemplate_category_db_default.pynew file mode 100644index 000000000000..82f12f23b37a--- /dev/null+++ b/products/mcp_store/backend/migrations/0013_alter_mcpservertemplate_category_db_default.py@@ -0,0 +1,27 @@+from django.db import migrations, models+++class Migration(migrations.Migration):+ dependencies = [+ ("mcp_store", "0012_alter_mcpserverinstallation_unique_together_and_more"),+ ]++ operations = [+ migrations.AlterField(+ model_name="mcpservertemplate",+ name="category",+ field=models.CharField(+ choices=[+ ("business", "Business Operations"),+ ("data", "Data & Analytics"),+ ("design", "Design & Content"),+ ("dev", "Developer Tools & APIs"),+ ("infra", "Infrastructure"),+ ("productivity", "Productivity & Collaboration"),+ ],+ db_default="dev",+ default="dev",+ max_length=20,+ ),+ ),+ ]diff --git a/products/mcp_store/backend/migrations/max_migration.txt b/products/mcp_store/backend/migrations/max_migration.txtindex 738663cacdef..bfbdac6daf1c 100644--- a/products/mcp_store/backend/migrations/max_migration.txt+++ b/products/mcp_store/backend/migrations/max_migration.txt@@ -1 +1 @@-0012_alter_mcpserverinstallation_unique_together_and_more+0013_alter_mcpservertemplate_category_db_defaultdiff --git a/products/mcp_store/backend/models.py b/products/mcp_store/backend/models.pyindex 5b027effd33a..69fa0e32d982 100644--- a/products/mcp_store/backend/models.py+++ b/products/mcp_store/backend/models.py@@ -80,7 +80,7 @@ class MCPServerTemplate(CreatedMetaFields, UpdatedMetaFields, UUIDModel):description = models.TextField(blank=True, default="")auth_type = models.CharField(max_length=20, choices=AUTH_TYPE_CHOICES, default="oauth")icon_key = models.CharField(max_length=100, blank=True, default="")- category = models.CharField(max_length=20, choices=CATEGORY_CHOICES, default="dev")+ category = models.CharField(max_length=20, choices=CATEGORY_CHOICES, default="dev", db_default="dev")oauth_issuer_url = models.URLField(max_length=2048, blank=True, default="")oauth_metadata = models.JSONField(default=dict, blank=True)oauth_credentials = EncryptedJSONField(default=dict, blank=True)