From cd3bc4ac88130f1a4823d4a512f9fda8f8186a69 Mon Sep 17 00:00:00 2001 From: David Newell Date: Wed, 3 Jan 2024 16:53:31 +0000 Subject: [PATCH] include settings migration --- latest_migrations.manifest | 2 +- ...0380_add_session_recording_config_to_team.py | 17 +++++++++++++++++ posthog/models/team/team.py | 1 + 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 posthog/migrations/0380_add_session_recording_config_to_team.py diff --git a/latest_migrations.manifest b/latest_migrations.manifest index 9deccea94b408..54f0d618d5dfe 100644 --- a/latest_migrations.manifest +++ b/latest_migrations.manifest @@ -5,7 +5,7 @@ contenttypes: 0002_remove_content_type_name ee: 0015_add_verified_properties otp_static: 0002_throttling otp_totp: 0002_auto_20190420_0723 -posthog: 0379_alter_scheduledchange +posthog: 0380_add_session_recording_config_to_team sessions: 0001_initial social_django: 0010_uid_db_index two_factor: 0007_auto_20201201_1019 diff --git a/posthog/migrations/0380_add_session_recording_config_to_team.py b/posthog/migrations/0380_add_session_recording_config_to_team.py new file mode 100644 index 0000000000000..0a5f61784944c --- /dev/null +++ b/posthog/migrations/0380_add_session_recording_config_to_team.py @@ -0,0 +1,17 @@ +# Generated by Django 3.2.19 on 2024-01-03 16:51 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("posthog", "0379_alter_scheduledchange"), + ] + + operations = [ + migrations.AddField( + model_name="team", + name="session_recording_config", + field=models.JSONField(blank=True, null=True), + ), + ] diff --git a/posthog/models/team/team.py b/posthog/models/team/team.py index 4cd699f719d76..7ef8ba5cba66d 100644 --- a/posthog/models/team/team.py +++ b/posthog/models/team/team.py @@ -182,6 +182,7 @@ class Team(UUIDClassicModel): ) session_recording_linked_flag: models.JSONField = models.JSONField(null=True, blank=True) session_recording_network_payload_capture_config: models.JSONField = models.JSONField(null=True, blank=True) + session_recording_config: models.JSONField = models.JSONField(null=True, blank=True) capture_console_log_opt_in: models.BooleanField = models.BooleanField(null=True, blank=True) capture_performance_opt_in: models.BooleanField = models.BooleanField(null=True, blank=True) surveys_opt_in: models.BooleanField = models.BooleanField(null=True, blank=True)