0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 18:07:17 +01:00
posthog/ee/migrations/0015_add_verified_properties.py
Paul D'Ambra 5b268df29c
feat: allow verified property definitions (#15937)
Today it annoyed me I could verify an event but not a property

Changes
Adds property definition verification, which was mostly copy-pasta from existing code
2023-06-08 11:52:25 +01:00

38 lines
1.1 KiB
Python

# Generated by Django 3.2.18 on 2023-06-07 10:39
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("ee", "0014_roles_memberships_and_resource_access"),
]
operations = [
migrations.AddField(
model_name="enterprisepropertydefinition",
name="verified",
field=models.BooleanField(blank=True, default=False),
),
migrations.AddField(
model_name="enterprisepropertydefinition",
name="verified_at",
field=models.DateTimeField(blank=True, null=True),
),
migrations.AddField(
model_name="enterprisepropertydefinition",
name="verified_by",
field=models.ForeignKey(
blank=True,
null=True,
on_delete=django.db.models.deletion.SET_NULL,
related_name="property_verifying_user",
to=settings.AUTH_USER_MODEL,
),
),
]