From 5b268df29c7f23a7ffb26a550b33a23d91d21235 Mon Sep 17 00:00:00 2001 From: Paul D'Ambra Date: Thu, 8 Jun 2023 11:52:25 +0100 Subject: [PATCH] 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 --- ee/api/ee_property_definition.py | 31 +- ee/api/test/test_event_definition.py | 175 +- ee/api/test/test_property_definition.py | 164 +- .../test/__snapshots__/test_cohort.ambr | 20 +- .../test/__snapshots__/test_property.ambr | 2 +- ...ickhouse_experiment_secondary_results.ambr | 2 +- .../test_clickhouse_experiments.ambr | 12 +- ee/migrations/0015_add_verified_properties.py | 37 + ee/models/property_definition.py | 6 + .../test/test_property_definition_model.py | 16 + .../__snapshots__/test_migration_0012.ambr | 12219 ---------------- ee/test/test_migration_0012.py | 105 - .../DefinitionPopoverContents.tsx | 17 +- .../definition/DefinitionEdit.tsx | 13 +- .../events/DefinitionHeader.tsx | 7 + frontend/src/types.ts | 3 + latest_migrations.manifest | 2 +- posthog/api/event_definition.py | 13 +- posthog/api/property_definition.py | 9 +- posthog/api/utils.py | 17 +- 20 files changed, 454 insertions(+), 12416 deletions(-) create mode 100644 ee/migrations/0015_add_verified_properties.py create mode 100644 ee/models/test/test_property_definition_model.py delete mode 100644 ee/test/__snapshots__/test_migration_0012.ambr delete mode 100644 ee/test/test_migration_0012.py diff --git a/ee/api/ee_property_definition.py b/ee/api/ee_property_definition.py index a5b7d261c79..e5257372e0a 100644 --- a/ee/api/ee_property_definition.py +++ b/ee/api/ee_property_definition.py @@ -1,5 +1,5 @@ from rest_framework import serializers - +from django.utils import timezone from ee.models.property_definition import EnterprisePropertyDefinition from posthog.api.shared import UserBasicSerializer from posthog.api.tagged_item import TaggedItemSerializerMixin @@ -9,6 +9,7 @@ from posthog.models.activity_logging.activity_log import dict_changes_between, l class EnterprisePropertyDefinitionSerializer(TaggedItemSerializerMixin, serializers.ModelSerializer): updated_by = UserBasicSerializer(read_only=True) + verified_by = UserBasicSerializer(read_only=True) class Meta: model = EnterprisePropertyDefinition @@ -23,8 +24,19 @@ class EnterprisePropertyDefinitionSerializer(TaggedItemSerializerMixin, serializ "query_usage_30_day", "is_seen_on_filtered_events", "property_type", + "verified", + "verified_at", + "verified_by", ) - read_only_fields = ["id", "name", "is_numerical", "query_usage_30_day", "is_seen_on_filtered_events"] + read_only_fields = [ + "id", + "name", + "is_numerical", + "query_usage_30_day", + "is_seen_on_filtered_events", + "verified_at", + "verified_by", + ] def update(self, property_definition: EnterprisePropertyDefinition, validated_data): validated_data["updated_by"] = self.context["request"].user @@ -34,6 +46,21 @@ class EnterprisePropertyDefinitionSerializer(TaggedItemSerializerMixin, serializ else: validated_data["is_numerical"] = False + if "verified" in validated_data: + if validated_data["verified"] and not property_definition.verified: + # Verify property only if previously unverified + validated_data["verified_by"] = self.context["request"].user + validated_data["verified_at"] = timezone.now() + validated_data["verified"] = True + elif not validated_data["verified"]: + # Unverifying property nullifies verified properties + validated_data["verified_by"] = None + validated_data["verified_at"] = None + validated_data["verified"] = False + else: + # Attempting to re-verify an already verified property, invalid action. Ignore attribute. + validated_data.pop("verified") + before_state = { k: property_definition.__dict__[k] for k in validated_data.keys() if k in property_definition.__dict__ } diff --git a/ee/api/test/test_event_definition.py b/ee/api/test/test_event_definition.py index 5fd42082406..6291ba1ce06 100644 --- a/ee/api/test/test_event_definition.py +++ b/ee/api/test/test_event_definition.py @@ -1,4 +1,5 @@ -from typing import cast, Optional +from datetime import datetime +from typing import cast, Optional, List, Dict, Any import dateutil.parser from django.utils import timezone @@ -7,18 +8,98 @@ from rest_framework import status from ee.models.event_definition import EnterpriseEventDefinition from ee.models.license import License, LicenseManager -from posthog.models import Tag, ActivityLog +from posthog.api.test.test_event_definition import capture_event, EventData +from posthog.api.test.test_team import create_team +from posthog.api.test.test_user import create_user +from posthog.models import Tag, ActivityLog, Team, User from posthog.models.event_definition import EventDefinition +from posthog.tasks.calculate_event_property_usage import calculate_event_property_usage_for_team from posthog.test.base import APIBaseTest +from posthog.api.test.test_organization import create_organization +@freeze_time("2020-01-02") class TestEventDefinitionEnterpriseAPI(APIBaseTest): + demo_team: Team = None # type: ignore + user: User = None # type: ignore + + """ + Ignoring the verified field we'd expect ordering purchase, watched_movie, entered_free_trial, $pageview + With it we expect watched_movie, entered_free_trial, purchase, $pageview + """ + EXPECTED_EVENT_DEFINITIONS: List[Dict[str, Any]] = [ + {"name": "purchase", "volume_30_day": 30, "verified": None}, + {"name": "entered_free_trial", "volume_30_day": 15, "verified": True}, + {"name": "watched_movie", "volume_30_day": 25, "verified": True}, + {"name": "$pageview", "volume_30_day": 14, "verified": None}, + ] + + @classmethod + def setUpTestData(cls): + cls.organization = create_organization(name="test org") + cls.demo_team = create_team(organization=cls.organization) + cls.user = create_user("user", "pass", cls.organization) + + for event_definition in cls.EXPECTED_EVENT_DEFINITIONS: + EnterpriseEventDefinition.objects.create(name=event_definition["name"], team_id=cls.demo_team.pk) + for _ in range(event_definition["volume_30_day"]): + capture_event( + event=EventData( + event=event_definition["name"], + team_id=cls.demo_team.pk, + distinct_id="abc", + timestamp=datetime(2020, 1, 1), + properties={}, + ) + ) + + # To ensure `volume_30_day` and `query_usage_30_day` are returned non + # None, we need to call this task to have them calculated. + calculate_event_property_usage_for_team(cls.demo_team.pk) + + def test_list_event_definitions(self): + super(LicenseManager, cast(LicenseManager, License.objects)).create( + plan="enterprise", valid_until=timezone.datetime(2500, 1, 19, 3, 14, 7) + ) + + response = self.client.get("/api/projects/@current/event_definitions/") + self.assertEqual(response.status_code, status.HTTP_200_OK) + self.assertEqual(response.json()["count"], len(self.EXPECTED_EVENT_DEFINITIONS)) + + self.assertEqual( + [(r["name"], r["volume_30_day"], r["verified"]) for r in response.json()["results"]], + [ + ("purchase", 30, False), + ("watched_movie", 25, False), + ("entered_free_trial", 15, False), + ("$pageview", 14, False), + ], + ) + + for event_definition in self.EXPECTED_EVENT_DEFINITIONS: + definition = EnterpriseEventDefinition.objects.filter( + name=event_definition["name"], team=self.demo_team + ).first() + if definition is None: + raise AssertionError(f"Event definition {event_definition['name']} not found") + definition.verified = event_definition["verified"] or False + definition.save() + + response = self.client.get("/api/projects/@current/event_definitions/") + + assert [(r["name"], r["volume_30_day"], r["verified"]) for r in response.json()["results"]] == [ + ("watched_movie", 25, True), + ("entered_free_trial", 15, True), + ("purchase", 30, False), + ("$pageview", 14, False), + ] + def test_retrieve_existing_event_definition(self): super(LicenseManager, cast(LicenseManager, License.objects)).create( plan="enterprise", valid_until=timezone.datetime(2500, 1, 19, 3, 14, 7) ) - event = EnterpriseEventDefinition.objects.create(team=self.team, name="enterprise event", owner=self.user) - tag = Tag.objects.create(name="deprecated", team_id=self.team.id) + event = EnterpriseEventDefinition.objects.create(team=self.demo_team, name="enterprise event", owner=self.user) + tag = Tag.objects.create(name="deprecated", team_id=self.demo_team.id) event.tagged_items.create(tag_id=tag.id) response = self.client.get(f"/api/projects/@current/event_definitions/{event.id}") self.assertEqual(response.status_code, status.HTTP_200_OK) @@ -37,10 +118,10 @@ class TestEventDefinitionEnterpriseAPI(APIBaseTest): super(LicenseManager, cast(LicenseManager, License.objects)).create( plan="enterprise", valid_until=timezone.datetime(2500, 1, 19, 3, 14, 7) ) - event = EventDefinition.objects.create(team=self.team, name="event") + event = EventDefinition.objects.create(team=self.demo_team, name="event") response = self.client.get(f"/api/projects/@current/event_definitions/{event.id}") self.assertEqual(response.status_code, status.HTTP_200_OK) - enterprise_event = EnterpriseEventDefinition.objects.all().first() + enterprise_event = EnterpriseEventDefinition.objects.filter(id=event.id).first() event.refresh_from_db() self.assertEqual(enterprise_event.eventdefinition_ptr_id, event.id) # type: ignore self.assertEqual(enterprise_event.name, event.name) # type: ignore @@ -51,22 +132,26 @@ class TestEventDefinitionEnterpriseAPI(APIBaseTest): plan="enterprise", valid_until=timezone.datetime(2500, 1, 19, 3, 14, 7) ) enterprise_property = EnterpriseEventDefinition.objects.create( - team=self.team, name="enterprise event", owner=self.user + team=self.demo_team, name="enterprise event", owner=self.user ) - tag = Tag.objects.create(name="deprecated", team_id=self.team.id) + tag = Tag.objects.create(name="deprecated", team_id=self.demo_team.id) enterprise_property.tagged_items.create(tag_id=tag.id) - regular_event = EnterpriseEventDefinition.objects.create(team=self.team, name="regular event", owner=self.user) + regular_event = EnterpriseEventDefinition.objects.create( + team=self.demo_team, name="regular event", owner=self.user + ) regular_event.tagged_items.create(tag_id=tag.id) response = self.client.get(f"/api/projects/@current/event_definitions/?search=enter") self.assertEqual(response.status_code, status.HTTP_200_OK) response_data = response.json() - self.assertEqual(len(response_data["results"]), 1) + self.assertEqual( + sorted([r["name"] for r in response_data["results"]]), ["entered_free_trial", "enterprise event"] + ) - self.assertEqual(response_data["results"][0]["name"], "enterprise event") - self.assertEqual(response_data["results"][0]["description"], "") - self.assertEqual(response_data["results"][0]["tags"], ["deprecated"]) - self.assertEqual(response_data["results"][0]["owner"]["id"], self.user.id) + self.assertEqual(response_data["results"][1]["name"], "enterprise event") + self.assertEqual(response_data["results"][1]["description"], "") + self.assertEqual(response_data["results"][1]["tags"], ["deprecated"]) + self.assertEqual(response_data["results"][1]["owner"]["id"], self.user.id) response = self.client.get(f"/api/projects/@current/event_definitions/?search=enterprise") self.assertEqual(response.status_code, status.HTTP_200_OK) @@ -76,7 +161,9 @@ class TestEventDefinitionEnterpriseAPI(APIBaseTest): response = self.client.get(f"/api/projects/@current/event_definitions/?search=e ev") self.assertEqual(response.status_code, status.HTTP_200_OK) response_data = response.json() - self.assertEqual(len(response_data["results"]), 2) + self.assertEqual( + sorted([r["name"] for r in response_data["results"]]), ["$pageview", "enterprise event", "regular event"] + ) response = self.client.get(f"/api/projects/@current/event_definitions/?search=bust") self.assertEqual(response.status_code, status.HTTP_200_OK) @@ -87,7 +174,7 @@ class TestEventDefinitionEnterpriseAPI(APIBaseTest): super(LicenseManager, cast(LicenseManager, License.objects)).create( plan="enterprise", valid_until=timezone.datetime(2038, 1, 19, 3, 14, 7) ) - event = EnterpriseEventDefinition.objects.create(team=self.team, name="enterprise event", owner=self.user) + event = EnterpriseEventDefinition.objects.create(team=self.demo_team, name="enterprise event", owner=self.user) response = self.client.patch( f"/api/projects/@current/event_definitions/{str(event.id)}/", {"description": "This is a description.", "tags": ["official", "internal"]}, @@ -125,7 +212,7 @@ class TestEventDefinitionEnterpriseAPI(APIBaseTest): ] def test_update_event_without_license(self): - event = EnterpriseEventDefinition.objects.create(team=self.team, name="enterprise event") + event = EnterpriseEventDefinition.objects.create(team=self.demo_team, name="enterprise event") response = self.client.patch( f"/api/projects/@current/event_definitions/{str(event.id)}", data={"description": "test"} ) @@ -136,37 +223,35 @@ class TestEventDefinitionEnterpriseAPI(APIBaseTest): super(LicenseManager, cast(LicenseManager, License.objects)).create( plan="enterprise", valid_until=timezone.datetime(2010, 1, 19, 3, 14, 7) ) - event = EnterpriseEventDefinition.objects.create(team=self.team, name="description test") + event = EnterpriseEventDefinition.objects.create(team=self.demo_team, name="description test") response = self.client.patch( f"/api/projects/@current/event_definitions/{str(event.id)}", data={"description": "test"} ) self.assertEqual(response.status_code, status.HTTP_402_PAYMENT_REQUIRED) self.assertIn("This feature is part of the premium PostHog offering.", response.json()["detail"]) - @freeze_time("2021-08-25T22:09:14.252Z") def test_can_get_event_verification_data(self): super(LicenseManager, cast(LicenseManager, License.objects)).create( plan="enterprise", valid_until=timezone.datetime(2500, 1, 19, 3, 14, 7) ) - event = EnterpriseEventDefinition.objects.create(team=self.team, name="enterprise event", owner=self.user) + event = EnterpriseEventDefinition.objects.create(team=self.demo_team, name="enterprise event", owner=self.user) response = self.client.get(f"/api/projects/@current/event_definitions/{event.id}") self.assertEqual(response.status_code, status.HTTP_200_OK) assert response.json()["verified"] is False assert response.json()["verified_by"] is None assert response.json()["verified_at"] is None - assert response.json()["updated_at"] == "2021-08-25T22:09:14.252000Z" + assert response.json()["updated_at"] == "2020-01-02T00:00:00Z" query_list_response = self.client.get(f"/api/projects/@current/event_definitions") matches = [p["name"] for p in query_list_response.json()["results"] if p["name"] == "enterprise event"] assert len(matches) == 1 - @freeze_time("2021-08-25T22:09:14.252Z") def test_verify_then_unverify(self): super(LicenseManager, cast(LicenseManager, License.objects)).create( plan="enterprise", valid_until=timezone.datetime(2500, 1, 19, 3, 14, 7) ) - event = EnterpriseEventDefinition.objects.create(team=self.team, name="enterprise event", owner=self.user) + event = EnterpriseEventDefinition.objects.create(team=self.demo_team, name="enterprise event", owner=self.user) response = self.client.get(f"/api/projects/@current/event_definitions/{event.id}") self.assertEqual(response.status_code, status.HTTP_200_OK) @@ -181,7 +266,7 @@ class TestEventDefinitionEnterpriseAPI(APIBaseTest): assert response.json()["verified"] is True assert response.json()["verified_by"]["id"] == self.user.id - assert response.json()["verified_at"] == "2021-08-25T22:09:14.252000Z" + assert response.json()["verified_at"] == "2020-01-02T00:00:00Z" # Unverify the event self.client.patch(f"/api/projects/@current/event_definitions/{event.id}", {"verified": False}) @@ -196,41 +281,43 @@ class TestEventDefinitionEnterpriseAPI(APIBaseTest): super(LicenseManager, cast(LicenseManager, License.objects)).create( plan="enterprise", valid_until=timezone.datetime(2500, 1, 19, 3, 14, 7) ) - event = EnterpriseEventDefinition.objects.create(team=self.team, name="enterprise event", owner=self.user) + event = EnterpriseEventDefinition.objects.create(team=self.demo_team, name="enterprise event", owner=self.user) response = self.client.get(f"/api/projects/@current/event_definitions/{event.id}") self.assertEqual(response.status_code, status.HTTP_200_OK) + assert self.user.team.pk == self.demo_team.pk + assert response.json()["verified"] is False assert response.json()["verified_by"] is None assert response.json()["verified_at"] is None - with freeze_time("2021-08-25T22:09:14.252Z"): + patch_result = self.client.patch(f"/api/projects/@current/event_definitions/{event.id}", {"verified": True}) + self.assertEqual(patch_result.status_code, status.HTTP_200_OK, patch_result.json()) + + response = self.client.get(f"/api/projects/@current/event_definitions/{event.id}") + self.assertEqual(response.status_code, status.HTTP_200_OK, response.json()) + + assert response.json()["verified"] is True + assert response.json()["verified_by"]["id"] == self.user.id + assert response.json()["verified_at"] == "2020-01-02T00:00:00Z" + assert response.json()["updated_at"] == "2020-01-02T00:00:00Z" + + with freeze_time("2020-01-02T00:01:00Z"): self.client.patch(f"/api/projects/@current/event_definitions/{event.id}", {"verified": True}) response = self.client.get(f"/api/projects/@current/event_definitions/{event.id}") self.assertEqual(response.status_code, status.HTTP_200_OK) assert response.json()["verified"] is True assert response.json()["verified_by"]["id"] == self.user.id - assert response.json()["verified_at"] == "2021-08-25T22:09:14.252000Z" - assert response.json()["updated_at"] == "2021-08-25T22:09:14.252000Z" - - with freeze_time("2021-10-26T22:09:14.252Z"): - self.client.patch(f"/api/projects/@current/event_definitions/{event.id}", {"verified": True}) - response = self.client.get(f"/api/projects/@current/event_definitions/{event.id}") - self.assertEqual(response.status_code, status.HTTP_200_OK) - - assert response.json()["verified"] is True - assert response.json()["verified_by"]["id"] == self.user.id - assert response.json()["verified_at"] == "2021-08-25T22:09:14.252000Z" # Note `verified_at` did not change + assert response.json()["verified_at"] == "2020-01-02T00:00:00Z" # Note `verified_at` did not change # updated_at automatically updates on every patch request - assert response.json()["updated_at"] == "2021-10-26T22:09:14.252000Z" + assert response.json()["updated_at"] == "2020-01-02T00:01:00Z" - @freeze_time("2021-08-25T22:09:14.252Z") def test_cannot_update_verified_meta_properties_directly(self): super(LicenseManager, cast(LicenseManager, License.objects)).create( plan="enterprise", valid_until=timezone.datetime(2500, 1, 19, 3, 14, 7) ) - event = EnterpriseEventDefinition.objects.create(team=self.team, name="enterprise event", owner=self.user) + event = EnterpriseEventDefinition.objects.create(team=self.demo_team, name="enterprise event", owner=self.user) response = self.client.get(f"/api/projects/@current/event_definitions/{event.id}") self.assertEqual(response.status_code, status.HTTP_200_OK) @@ -238,7 +325,7 @@ class TestEventDefinitionEnterpriseAPI(APIBaseTest): assert response.json()["verified_by"] is None assert response.json()["verified_at"] is None - with freeze_time("2021-08-25T22:09:14.252Z"): + with freeze_time("2020-01-02T00:01:00Z"): self.client.patch( f"/api/projects/@current/event_definitions/{event.id}", { @@ -259,7 +346,7 @@ class TestEventDefinitionEnterpriseAPI(APIBaseTest): super(LicenseManager, cast(LicenseManager, License.objects)).create( key="key_123", plan="enterprise", valid_until=timezone.datetime(2038, 1, 19, 3, 14, 7) ) - event = EnterpriseEventDefinition.objects.create(team=self.team, name="enterprise event") + event = EnterpriseEventDefinition.objects.create(team=self.demo_team, name="enterprise event") response = self.client.patch( f"/api/projects/@current/event_definitions/{str(event.id)}", data={"tags": ["a", "b", "a"]} ) @@ -270,8 +357,8 @@ class TestEventDefinitionEnterpriseAPI(APIBaseTest): super(LicenseManager, cast(LicenseManager, License.objects)).create( plan="enterprise", valid_until=timezone.datetime(2500, 1, 19, 3, 14, 7) ) - EnterpriseEventDefinition.objects.create(team=self.team, name="rated_app") - EnterpriseEventDefinition.objects.create(team=self.team, name="installed_app") + EnterpriseEventDefinition.objects.create(team=self.demo_team, name="rated_app") + EnterpriseEventDefinition.objects.create(team=self.demo_team, name="installed_app") response = self.client.get("/api/projects/@current/event_definitions/?search=app&event_type=event") self.assertEqual(response.status_code, status.HTTP_200_OK) diff --git a/ee/api/test/test_property_definition.py b/ee/api/test/test_property_definition.py index 46a8a7654da..df2f544b1c0 100644 --- a/ee/api/test/test_property_definition.py +++ b/ee/api/test/test_property_definition.py @@ -1,5 +1,5 @@ -from typing import cast, Optional - +from typing import cast, Optional, List, Dict +from freezegun import freeze_time import pytest from django.db.utils import IntegrityError from django.utils import timezone @@ -279,3 +279,163 @@ class TestPropertyDefinitionEnterpriseAPI(APIBaseTest): ) self.assertListEqual(sorted(response.json()["tags"]), ["a", "b"]) + + @freeze_time("2021-08-25T22:09:14.252Z") + def test_can_get_property_verification_data(self): + super(LicenseManager, cast(LicenseManager, License.objects)).create( + plan="enterprise", valid_until=timezone.datetime(2500, 1, 19, 3, 14, 7) + ) + event = EnterprisePropertyDefinition.objects.create(team=self.team, name="enterprise property") + response = self.client.get(f"/api/projects/@current/property_definitions/{event.id}") + self.assertEqual(response.status_code, status.HTTP_200_OK) + + assert response.json()["verified"] is False + assert response.json()["verified_by"] is None + assert response.json()["verified_at"] is None + assert response.json()["updated_at"] == "2021-08-25T22:09:14.252000Z" + + query_list_response = self.client.get(f"/api/projects/@current/property_definitions") + matches = [p["name"] for p in query_list_response.json()["results"] if p["name"] == "enterprise property"] + assert len(matches) == 1 + + @freeze_time("2021-08-25T22:09:14.252Z") + def test_verify_then_unverify(self): + super(LicenseManager, cast(LicenseManager, License.objects)).create( + plan="enterprise", valid_until=timezone.datetime(2500, 1, 19, 3, 14, 7) + ) + event = EnterprisePropertyDefinition.objects.create(team=self.team, name="enterprise property") + response = self.client.get(f"/api/projects/@current/property_definitions/{event.id}") + self.assertEqual(response.status_code, status.HTTP_200_OK) + + assert response.json()["verified"] is False + assert response.json()["verified_by"] is None + assert response.json()["verified_at"] is None + + # Verify the event + self.client.patch(f"/api/projects/@current/property_definitions/{event.id}", {"verified": True}) + response = self.client.get(f"/api/projects/@current/property_definitions/{event.id}") + self.assertEqual(response.status_code, status.HTTP_200_OK) + + assert response.json()["verified"] is True + assert response.json()["verified_by"]["id"] == self.user.id + assert response.json()["verified_at"] == "2021-08-25T22:09:14.252000Z" + + # Unverify the event + self.client.patch(f"/api/projects/@current/property_definitions/{event.id}", {"verified": False}) + response = self.client.get(f"/api/projects/@current/property_definitions/{event.id}") + self.assertEqual(response.status_code, status.HTTP_200_OK) + + assert response.json()["verified"] is False + assert response.json()["verified_by"] is None + assert response.json()["verified_at"] is None + + def test_verify_then_verify_again_no_change(self): + super(LicenseManager, cast(LicenseManager, License.objects)).create( + plan="enterprise", valid_until=timezone.datetime(2500, 1, 19, 3, 14, 7) + ) + event = EnterprisePropertyDefinition.objects.create(team=self.team, name="enterprise property") + response = self.client.get(f"/api/projects/@current/property_definitions/{event.id}") + self.assertEqual(response.status_code, status.HTTP_200_OK) + + assert response.json()["verified"] is False + assert response.json()["verified_by"] is None + assert response.json()["verified_at"] is None + + with freeze_time("2021-08-25T22:09:14.252Z"): + self.client.patch(f"/api/projects/@current/property_definitions/{event.id}", {"verified": True}) + response = self.client.get(f"/api/projects/@current/property_definitions/{event.id}") + self.assertEqual(response.status_code, status.HTTP_200_OK) + + assert response.json()["verified"] is True + assert response.json()["verified_by"]["id"] == self.user.id + assert response.json()["verified_at"] == "2021-08-25T22:09:14.252000Z" + assert response.json()["updated_at"] == "2021-08-25T22:09:14.252000Z" + + with freeze_time("2021-10-26T22:09:14.252Z"): + self.client.patch(f"/api/projects/@current/property_definitions/{event.id}", {"verified": True}) + response = self.client.get(f"/api/projects/@current/property_definitions/{event.id}") + self.assertEqual(response.status_code, status.HTTP_200_OK) + + assert response.json()["verified"] is True + assert response.json()["verified_by"]["id"] == self.user.id + assert response.json()["verified_at"] == "2021-08-25T22:09:14.252000Z" # Note `verified_at` did not change + # updated_at automatically updates on every patch request + assert response.json()["updated_at"] == "2021-10-26T22:09:14.252000Z" + + @freeze_time("2021-08-25T22:09:14.252Z") + def test_cannot_update_verified_meta_properties_directly(self): + super(LicenseManager, cast(LicenseManager, License.objects)).create( + plan="enterprise", valid_until=timezone.datetime(2500, 1, 19, 3, 14, 7) + ) + event = EnterprisePropertyDefinition.objects.create(team=self.team, name="enterprise property") + response = self.client.get(f"/api/projects/@current/property_definitions/{event.id}") + self.assertEqual(response.status_code, status.HTTP_200_OK) + + assert response.json()["verified"] is False + assert response.json()["verified_by"] is None + assert response.json()["verified_at"] is None + + with freeze_time("2021-08-25T22:09:14.252Z"): + self.client.patch( + f"/api/projects/@current/property_definitions/{event.id}", + { + "verified_by": self.user.id, + "verified_at": timezone.now(), + }, # These properties are ignored by the serializer + ) + response = self.client.get(f"/api/projects/@current/property_definitions/{event.id}") + self.assertEqual(response.status_code, status.HTTP_200_OK) + + assert response.json()["verified"] is False + assert response.json()["verified_by"] is None + assert response.json()["verified_at"] is None + + def test_list_property_definitions(self): + super(LicenseManager, cast(LicenseManager, License.objects)).create( + plan="enterprise", valid_until=timezone.datetime(2500, 1, 19, 3, 14, 7) + ) + + properties: List[Dict] = [ + {"name": "4_when_verified", "query_usage_30_day": 4, "verified": False}, + {"name": "5_when_verified", "query_usage_30_day": 4, "verified": False}, + {"name": "1_when_verified", "query_usage_30_day": 4, "verified": True}, + {"name": "2_when_verified", "query_usage_30_day": 3, "verified": True}, + {"name": "6_when_verified", "query_usage_30_day": 1, "verified": False}, + {"name": "3_when_verified", "query_usage_30_day": 1, "verified": True}, + ] + + for property in properties: + EnterprisePropertyDefinition.objects.create( + team=self.team, name=property["name"], query_usage_30_day=property["query_usage_30_day"] + ) + + response = self.client.get("/api/projects/@current/property_definitions/") + self.assertEqual(response.status_code, status.HTTP_200_OK) + self.assertEqual(response.json()["count"], len(properties)) + + assert [(r["name"], r["query_usage_30_day"], r["verified"]) for r in response.json()["results"]] == [ + ("1_when_verified", 4, False), + ("4_when_verified", 4, False), + ("5_when_verified", 4, False), + ("2_when_verified", 3, False), + ("3_when_verified", 1, False), + ("6_when_verified", 1, False), + ] + + for property in properties: + definition = EnterprisePropertyDefinition.objects.filter(name=property["name"], team=self.team).first() + if definition is None: + raise AssertionError(f"Property definition {property['name']} not found") + definition.verified = property["verified"] or False + definition.save() + + response = self.client.get("/api/projects/@current/property_definitions/") + + assert [(r["name"], r["query_usage_30_day"], r["verified"]) for r in response.json()["results"]] == [ + ("1_when_verified", 4, True), + ("2_when_verified", 3, True), + ("3_when_verified", 1, True), + ("4_when_verified", 4, False), + ("5_when_verified", 4, False), + ("6_when_verified", 1, False), + ] diff --git a/ee/clickhouse/models/test/__snapshots__/test_cohort.ambr b/ee/clickhouse/models/test/__snapshots__/test_cohort.ambr index 5cff724bc1c..8a08fa43c5f 100644 --- a/ee/clickhouse/models/test/__snapshots__/test_cohort.ambr +++ b/ee/clickhouse/models/test/__snapshots__/test_cohort.ambr @@ -83,7 +83,7 @@ (SELECT pdi.person_id AS person_id, countIf(timestamp > now() - INTERVAL 2 year AND timestamp < now() - AND event = '$pageview') > 0 AS performed_event_condition_6_level_level_0_level_0_level_0_0 + AND event = '$pageview') > 0 AS performed_event_condition_14_level_level_0_level_0_level_0_0 FROM events e INNER JOIN (SELECT distinct_id, @@ -113,7 +113,7 @@ HAVING max(is_deleted) = 0 AND (((((NOT has(['something1'], replaceRegexpAll(JSONExtractRaw(argMax(person.properties, version), '$some_prop'), '^"|"$', ''))))))))) person ON person.person_id = behavior_query.person_id WHERE 1 = 1 - AND ((((performed_event_condition_6_level_level_0_level_0_level_0_0)))) ) as person + AND ((((performed_event_condition_14_level_level_0_level_0_level_0_0)))) ) as person UNION ALL SELECT person_id, cohort_id, @@ -148,7 +148,7 @@ (SELECT pdi.person_id AS person_id, countIf(timestamp > now() - INTERVAL 2 year AND timestamp < now() - AND event = '$pageview') > 0 AS performed_event_condition_8_level_level_0_level_0_level_0_0 + AND event = '$pageview') > 0 AS performed_event_condition_16_level_level_0_level_0_level_0_0 FROM events e INNER JOIN (SELECT distinct_id, @@ -178,7 +178,7 @@ HAVING max(is_deleted) = 0 AND (((((NOT has(['something1'], replaceRegexpAll(JSONExtractRaw(argMax(person.properties, version), '$some_prop'), '^"|"$', ''))))))))) person ON person.person_id = behavior_query.person_id WHERE 1 = 1 - AND ((((performed_event_condition_8_level_level_0_level_0_level_0_0)))) ) )) + AND ((((performed_event_condition_16_level_level_0_level_0_level_0_0)))) ) )) ' --- # name: TestCohort.test_cohortpeople_with_not_in_cohort_operator_for_behavioural_cohorts @@ -195,7 +195,7 @@ FROM (SELECT pdi.person_id AS person_id, minIf(timestamp, event = 'signup') >= now() - INTERVAL 15 day - AND minIf(timestamp, event = 'signup') < now() as first_time_condition_9_level_level_0_level_0_0 + AND minIf(timestamp, event = 'signup') < now() as first_time_condition_17_level_level_0_level_0_0 FROM events e INNER JOIN (SELECT distinct_id, @@ -208,7 +208,7 @@ AND event IN ['signup'] GROUP BY person_id) behavior_query WHERE 1 = 1 - AND (((first_time_condition_9_level_level_0_level_0_0))) ) as person + AND (((first_time_condition_17_level_level_0_level_0_0))) ) as person UNION ALL SELECT person_id, cohort_id, @@ -237,9 +237,9 @@ (SELECT pdi.person_id AS person_id, countIf(timestamp > now() - INTERVAL 2 year AND timestamp < now() - AND event = '$pageview') > 0 AS performed_event_condition_10_level_level_0_level_0_level_0_0, + AND event = '$pageview') > 0 AS performed_event_condition_18_level_level_0_level_0_level_0_0, minIf(timestamp, event = 'signup') >= now() - INTERVAL 15 day - AND minIf(timestamp, event = 'signup') < now() as first_time_condition_10_level_level_0_level_1_level_0_level_0_level_0_0 + AND minIf(timestamp, event = 'signup') < now() as first_time_condition_18_level_level_0_level_1_level_0_level_0_level_0_0 FROM events e INNER JOIN (SELECT distinct_id, @@ -252,8 +252,8 @@ AND event IN ['$pageview', 'signup'] GROUP BY person_id) behavior_query WHERE 1 = 1 - AND ((((performed_event_condition_10_level_level_0_level_0_level_0_0)) - AND ((((NOT first_time_condition_10_level_level_0_level_1_level_0_level_0_level_0_0)))))) ) as person + AND ((((performed_event_condition_18_level_level_0_level_0_level_0_0)) + AND ((((NOT first_time_condition_18_level_level_0_level_1_level_0_level_0_level_0_0)))))) ) as person UNION ALL SELECT person_id, cohort_id, diff --git a/ee/clickhouse/models/test/__snapshots__/test_property.ambr b/ee/clickhouse/models/test/__snapshots__/test_property.ambr index ec2d06e0adb..9e17aa23a0b 100644 --- a/ee/clickhouse/models/test/__snapshots__/test_property.ambr +++ b/ee/clickhouse/models/test/__snapshots__/test_property.ambr @@ -146,7 +146,7 @@ )) ', { - 'global_cohort_id_0': 38, + 'global_cohort_id_0': 46, 'global_version_0': None, }, ) diff --git a/ee/clickhouse/views/test/__snapshots__/test_clickhouse_experiment_secondary_results.ambr b/ee/clickhouse/views/test/__snapshots__/test_clickhouse_experiment_secondary_results.ambr index bb44ce246dd..34b288d21dd 100644 --- a/ee/clickhouse/views/test/__snapshots__/test_clickhouse_experiment_secondary_results.ambr +++ b/ee/clickhouse/views/test/__snapshots__/test_clickhouse_experiment_secondary_results.ambr @@ -1,6 +1,6 @@ # name: ClickhouseTestExperimentSecondaryResults.test_basic_secondary_metric_results ' - /* user_id:51 celery:posthog.celery.sync_insight_caching_state */ + /* user_id:55 celery:posthog.celery.sync_insight_caching_state */ SELECT team_id, date_diff('second', max(timestamp), now()) AS age FROM events diff --git a/ee/clickhouse/views/test/__snapshots__/test_clickhouse_experiments.ambr b/ee/clickhouse/views/test/__snapshots__/test_clickhouse_experiments.ambr index 996f98389e0..a2c53abd659 100644 --- a/ee/clickhouse/views/test/__snapshots__/test_clickhouse_experiments.ambr +++ b/ee/clickhouse/views/test/__snapshots__/test_clickhouse_experiments.ambr @@ -1,6 +1,6 @@ # name: ClickhouseTestFunnelExperimentResults.test_experiment_flow_with_event_results ' - /* user_id:57 celery:posthog.celery.sync_insight_caching_state */ + /* user_id:61 celery:posthog.celery.sync_insight_caching_state */ SELECT team_id, date_diff('second', max(timestamp), now()) AS age FROM events @@ -138,7 +138,7 @@ --- # name: ClickhouseTestFunnelExperimentResults.test_experiment_flow_with_event_results_and_events_out_of_time_range_timezones ' - /* user_id:58 celery:posthog.celery.sync_insight_caching_state */ + /* user_id:62 celery:posthog.celery.sync_insight_caching_state */ SELECT team_id, date_diff('second', max(timestamp), now()) AS age FROM events @@ -276,7 +276,7 @@ --- # name: ClickhouseTestFunnelExperimentResults.test_experiment_flow_with_event_results_for_three_test_variants ' - /* user_id:60 celery:posthog.celery.sync_insight_caching_state */ + /* user_id:64 celery:posthog.celery.sync_insight_caching_state */ SELECT team_id, date_diff('second', max(timestamp), now()) AS age FROM events @@ -414,7 +414,7 @@ --- # name: ClickhouseTestTrendExperimentResults.test_experiment_flow_with_event_results ' - /* user_id:62 celery:posthog.celery.sync_insight_caching_state */ + /* user_id:66 celery:posthog.celery.sync_insight_caching_state */ SELECT team_id, date_diff('second', max(timestamp), now()) AS age FROM events @@ -611,7 +611,7 @@ --- # name: ClickhouseTestTrendExperimentResults.test_experiment_flow_with_event_results_for_three_test_variants ' - /* user_id:63 celery:posthog.celery.sync_insight_caching_state */ + /* user_id:67 celery:posthog.celery.sync_insight_caching_state */ SELECT team_id, date_diff('second', max(timestamp), now()) AS age FROM events @@ -754,7 +754,7 @@ --- # name: ClickhouseTestTrendExperimentResults.test_experiment_flow_with_event_results_out_of_timerange_timezone ' - /* user_id:65 celery:posthog.celery.sync_insight_caching_state */ + /* user_id:69 celery:posthog.celery.sync_insight_caching_state */ SELECT team_id, date_diff('second', max(timestamp), now()) AS age FROM events diff --git a/ee/migrations/0015_add_verified_properties.py b/ee/migrations/0015_add_verified_properties.py new file mode 100644 index 00000000000..9b7fb3f8609 --- /dev/null +++ b/ee/migrations/0015_add_verified_properties.py @@ -0,0 +1,37 @@ +# 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, + ), + ), + ] diff --git a/ee/models/property_definition.py b/ee/models/property_definition.py index d10f71edb10..b49f2397711 100644 --- a/ee/models/property_definition.py +++ b/ee/models/property_definition.py @@ -9,6 +9,12 @@ class EnterprisePropertyDefinition(PropertyDefinition): updated_at: models.DateTimeField = models.DateTimeField(auto_now=True) updated_by = models.ForeignKey("posthog.User", null=True, on_delete=models.SET_NULL, blank=True) + verified: models.BooleanField = models.BooleanField(default=False, blank=True) + verified_at: models.DateTimeField = models.DateTimeField(null=True, blank=True) + verified_by = models.ForeignKey( + "posthog.User", null=True, on_delete=models.SET_NULL, blank=True, related_name="property_verifying_user" + ) + # Deprecated in favour of app-wide tagging model. See EnterpriseTaggedItem deprecated_tags: ArrayField = ArrayField(models.CharField(max_length=32), null=True, blank=True, default=list) deprecated_tags_v2: ArrayField = ArrayField( diff --git a/ee/models/test/test_property_definition_model.py b/ee/models/test/test_property_definition_model.py new file mode 100644 index 00000000000..77c3c58b62b --- /dev/null +++ b/ee/models/test/test_property_definition_model.py @@ -0,0 +1,16 @@ +import pytest + +from ee.models.property_definition import EnterprisePropertyDefinition +from posthog.test.base import BaseTest + + +class TestPropertyDefinition(BaseTest): + def test_errors_on_invalid_verified_by_type(self): + with pytest.raises(ValueError): + EnterprisePropertyDefinition.objects.create( + team=self.team, name="enterprise property", verified_by="Not user id" # type: ignore + ) + + def test_default_verified_false(self): + definition = EnterprisePropertyDefinition.objects.create(team=self.team, name="enterprise property") + assert definition.verified is False diff --git a/ee/test/__snapshots__/test_migration_0012.ambr b/ee/test/__snapshots__/test_migration_0012.ambr deleted file mode 100644 index f6b4cca3263..00000000000 --- a/ee/test/__snapshots__/test_migration_0012.ambr +++ /dev/null @@ -1,12219 +0,0 @@ -# name: TagsTestCase.test_tags_migrated - ' - - SELECT c.relname, - CASE - WHEN c.relispartition THEN 'p' - WHEN c.relkind IN ('m', - 'v') THEN 'v' - ELSE 't' - END - FROM pg_catalog.pg_class c - LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace - WHERE c.relkind IN ('f', - 'm', - 'p', - 'r', - 'v') - AND n.nspname NOT IN ('pg_catalog', - 'pg_toast') - AND pg_catalog.pg_table_is_visible(c.oid) - ' ---- -# name: TagsTestCase.test_tags_migrated.1 - ' - SELECT COUNT(*) AS "__count" - FROM "ee_enterpriseeventdefinition" - INNER JOIN "posthog_eventdefinition" ON ("ee_enterpriseeventdefinition"."eventdefinition_ptr_id" = "posthog_eventdefinition"."id") - WHERE NOT (("ee_enterpriseeventdefinition"."deprecated_tags" IS NULL - OR ("ee_enterpriseeventdefinition"."deprecated_tags" = ARRAY[]::varchar(32)[] - AND "ee_enterpriseeventdefinition"."deprecated_tags" IS NOT NULL))) - ' ---- -# name: TagsTestCase.test_tags_migrated.10 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.100 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.1000 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.1001 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.1002 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.1003 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE "posthog_tag"."id" IN ('00000000-0000-0000-0000-000000000000'::uuid, - '00000000-0000-0000-0000-000000000000'::uuid, - '00000000-0000-0000-0000-000000000000'::uuid /* ... */) - ' ---- -# name: TagsTestCase.test_tags_migrated.1004 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.1005 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.1006 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.1007 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.1008 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.1009 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.101 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.1010 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.1011 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.1012 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.1013 - ' - - SELECT c.relname, - CASE - WHEN c.relispartition THEN 'p' - WHEN c.relkind IN ('m', - 'v') THEN 'v' - ELSE 't' - END - FROM pg_catalog.pg_class c - LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace - WHERE c.relkind IN ('f', - 'm', - 'p', - 'r', - 'v') - AND n.nspname NOT IN ('pg_catalog', - 'pg_toast') - AND pg_catalog.pg_table_is_visible(c.oid) - ' ---- -# name: TagsTestCase.test_tags_migrated.1014 - ' - - SELECT c.relname, - CASE - WHEN c.relispartition THEN 'p' - WHEN c.relkind IN ('m', - 'v') THEN 'v' - ELSE 't' - END - FROM pg_catalog.pg_class c - LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace - WHERE c.relkind IN ('f', - 'm', - 'p', - 'r', - 'v') - AND n.nspname NOT IN ('pg_catalog', - 'pg_toast') - AND pg_catalog.pg_table_is_visible(c.oid) - ' ---- -# name: TagsTestCase.test_tags_migrated.1015 - ' - SELECT "django_migrations"."id", - "django_migrations"."app", - "django_migrations"."name", - "django_migrations"."applied" - FROM "django_migrations" - ' ---- -# name: TagsTestCase.test_tags_migrated.102 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.103 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.104 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.105 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.106 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.107 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.108 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.109 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.11 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.110 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.111 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.112 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.113 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.114 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.115 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.116 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.117 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.118 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.119 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.12 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.120 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.121 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.122 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.123 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.124 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.125 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.126 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.127 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.128 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.129 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.13 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.130 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.131 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.132 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.133 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.134 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.135 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.136 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.137 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.138 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.139 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.14 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.140 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.141 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.142 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.143 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.144 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.145 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.146 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.147 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.148 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.149 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.15 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.150 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.151 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.152 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.153 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.154 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.155 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.156 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.157 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.158 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.159 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.16 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.160 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.161 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.162 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.163 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.164 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.165 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.166 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.167 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.168 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.169 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.17 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.170 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.171 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.172 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.173 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.174 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.175 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.176 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.177 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.178 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.179 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.18 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.180 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.181 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.182 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.183 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.184 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.185 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.186 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.187 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.188 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.189 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.19 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.190 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.191 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.192 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.193 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.194 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.195 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.196 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.197 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.198 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.199 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.2 - ' - SELECT "ee_enterpriseeventdefinition"."deprecated_tags", - "posthog_eventdefinition"."team_id", - "ee_enterpriseeventdefinition"."eventdefinition_ptr_id" - FROM "ee_enterpriseeventdefinition" - INNER JOIN "posthog_eventdefinition" ON ("ee_enterpriseeventdefinition"."eventdefinition_ptr_id" = "posthog_eventdefinition"."id") - WHERE NOT (("ee_enterpriseeventdefinition"."deprecated_tags" IS NULL - OR ("ee_enterpriseeventdefinition"."deprecated_tags" = ARRAY[]::varchar(32)[] - AND "ee_enterpriseeventdefinition"."deprecated_tags" IS NOT NULL))) - ORDER BY "posthog_eventdefinition"."created_at" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.20 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.200 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.201 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.202 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.203 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.204 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.205 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.206 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.207 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.208 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.209 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.21 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.210 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.211 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.212 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.213 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.214 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.215 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.216 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.217 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.218 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.219 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.22 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.220 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.221 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.222 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.223 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.224 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.225 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.226 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.227 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.228 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.229 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.23 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.230 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.231 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.232 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.233 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.234 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.235 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.236 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.237 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.238 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.239 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.24 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.240 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.241 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.242 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.243 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.244 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.245 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.246 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.247 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.248 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.249 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.25 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.250 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.251 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.252 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.253 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.254 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.255 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.256 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.257 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.258 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.259 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.26 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.260 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.261 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.262 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.263 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.264 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.265 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.266 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.267 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.268 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.269 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.27 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.270 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.271 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.272 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.273 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.274 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.275 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.276 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.277 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.278 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.279 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.28 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.280 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.281 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.282 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.283 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.284 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.285 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.286 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.287 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.288 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.289 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.29 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.290 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.291 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.292 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.293 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.294 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.295 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.296 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.297 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.298 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.299 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.3 - ' - SELECT COUNT(*) AS "__count" - FROM "ee_enterprisepropertydefinition" - INNER JOIN "posthog_propertydefinition" ON ("ee_enterprisepropertydefinition"."propertydefinition_ptr_id" = "posthog_propertydefinition"."id") - WHERE NOT (("ee_enterprisepropertydefinition"."deprecated_tags" IS NULL - OR ("ee_enterprisepropertydefinition"."deprecated_tags" = ARRAY[]::varchar(32)[] - AND "ee_enterprisepropertydefinition"."deprecated_tags" IS NOT NULL))) - ' ---- -# name: TagsTestCase.test_tags_migrated.30 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.300 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.301 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.302 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.303 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.304 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.305 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.306 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.307 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.308 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.309 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.31 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.310 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.311 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.312 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.313 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.314 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.315 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.316 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.317 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.318 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.319 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.32 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.320 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.321 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.322 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.323 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.324 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.325 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.326 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.327 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.328 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.329 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.33 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.330 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.331 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.332 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.333 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.334 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.335 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.336 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.337 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.338 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.339 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.34 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.340 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.341 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.342 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.343 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.344 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.345 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.346 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.347 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.348 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.349 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.35 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.350 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.351 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.352 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.353 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.354 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.355 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.356 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.357 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.358 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.359 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.36 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.360 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.361 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.362 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.363 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.364 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.365 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.366 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.367 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.368 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.369 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.37 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.370 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.371 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.372 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.373 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.374 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.375 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.376 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.377 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.378 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.379 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.38 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.380 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.381 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.382 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.383 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.384 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.385 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.386 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.387 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.388 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.389 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.39 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.390 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.391 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.392 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.393 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.394 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.395 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.396 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.397 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.398 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.399 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.4 - ' - SELECT "ee_enterprisepropertydefinition"."deprecated_tags", - "posthog_propertydefinition"."team_id", - "ee_enterprisepropertydefinition"."propertydefinition_ptr_id" - FROM "ee_enterprisepropertydefinition" - INNER JOIN "posthog_propertydefinition" ON ("ee_enterprisepropertydefinition"."propertydefinition_ptr_id" = "posthog_propertydefinition"."id") - WHERE NOT (("ee_enterprisepropertydefinition"."deprecated_tags" IS NULL - OR ("ee_enterprisepropertydefinition"."deprecated_tags" = ARRAY[]::varchar(32)[] - AND "ee_enterprisepropertydefinition"."deprecated_tags" IS NOT NULL))) - ORDER BY "ee_enterprisepropertydefinition"."updated_at" ASC - LIMIT 1000 - ' ---- -# name: TagsTestCase.test_tags_migrated.40 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.400 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.401 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.402 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.403 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.404 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.405 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.406 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.407 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.408 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.409 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.41 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.410 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.411 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.412 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.413 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.414 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.415 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.416 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.417 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.418 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.419 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.42 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.420 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.421 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.422 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.423 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.424 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.425 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.426 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.427 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.428 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.429 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.43 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.430 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.431 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.432 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.433 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.434 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.435 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.436 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.437 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.438 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.439 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.44 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.440 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.441 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.442 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.443 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.444 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.445 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.446 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.447 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.448 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.449 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.45 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.450 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.451 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.452 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.453 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.454 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.455 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.456 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.457 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.458 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.459 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.46 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.460 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.461 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.462 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.463 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.464 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.465 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.466 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.467 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.468 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.469 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.47 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.470 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.471 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.472 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.473 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.474 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.475 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.476 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.477 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.478 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.479 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.48 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.480 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.481 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.482 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.483 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.484 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.485 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.486 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.487 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.488 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.489 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.49 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.490 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.491 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.492 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.493 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.494 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.495 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.496 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.497 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.498 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.499 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.5 - ' - SELECT "ee_enterprisepropertydefinition"."deprecated_tags", - "posthog_propertydefinition"."team_id", - "ee_enterprisepropertydefinition"."propertydefinition_ptr_id" - FROM "ee_enterprisepropertydefinition" - INNER JOIN "posthog_propertydefinition" ON ("ee_enterprisepropertydefinition"."propertydefinition_ptr_id" = "posthog_propertydefinition"."id") - WHERE NOT (("ee_enterprisepropertydefinition"."deprecated_tags" IS NULL - OR ("ee_enterprisepropertydefinition"."deprecated_tags" = ARRAY[]::varchar(32)[] - AND "ee_enterprisepropertydefinition"."deprecated_tags" IS NOT NULL))) - ORDER BY "ee_enterprisepropertydefinition"."updated_at" ASC - LIMIT 2 - OFFSET 1000 - ' ---- -# name: TagsTestCase.test_tags_migrated.50 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.500 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.501 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.502 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.503 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.504 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.505 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.506 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.507 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.508 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.509 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.51 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.510 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.511 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.512 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.513 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.514 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.515 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.516 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.517 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.518 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.519 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.52 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.520 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.521 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.522 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.523 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.524 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.525 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.526 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.527 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.528 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.529 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.53 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.530 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.531 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.532 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.533 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.534 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.535 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.536 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.537 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.538 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.539 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.54 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.540 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.541 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.542 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.543 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.544 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.545 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.546 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.547 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.548 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.549 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.55 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.550 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.551 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.552 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.553 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.554 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.555 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.556 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.557 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.558 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.559 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.56 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.560 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.561 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.562 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.563 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.564 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.565 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.566 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.567 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.568 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.569 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.57 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.570 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.571 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.572 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.573 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.574 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.575 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.576 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.577 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.578 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.579 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.58 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.580 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.581 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.582 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.583 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.584 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.585 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.586 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.587 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.588 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.589 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.59 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.590 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.591 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.592 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.593 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.594 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.595 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.596 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.597 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.598 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.599 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.6 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE "posthog_tag"."id" IN ('00000000-0000-0000-0000-000000000000'::uuid, - '00000000-0000-0000-0000-000000000000'::uuid, - '00000000-0000-0000-0000-000000000000'::uuid /* ... */) - ' ---- -# name: TagsTestCase.test_tags_migrated.60 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.600 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.601 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.602 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.603 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.604 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.605 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.606 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.607 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.608 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.609 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.61 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.610 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.611 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.612 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.613 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.614 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.615 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.616 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.617 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.618 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.619 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.62 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.620 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.621 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.622 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.623 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.624 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.625 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.626 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.627 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.628 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.629 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.63 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.630 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.631 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.632 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.633 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.634 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.635 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.636 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.637 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.638 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.639 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.64 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.640 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.641 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.642 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.643 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.644 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.645 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.646 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.647 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.648 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.649 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.65 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.650 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.651 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.652 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.653 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.654 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.655 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.656 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.657 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.658 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.659 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.66 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.660 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.661 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.662 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.663 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.664 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.665 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.666 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.667 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.668 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.669 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.67 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.670 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.671 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.672 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.673 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.674 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.675 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.676 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.677 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.678 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.679 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.68 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.680 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.681 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.682 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.683 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.684 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.685 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.686 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.687 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.688 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.689 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.69 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.690 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.691 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.692 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.693 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.694 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.695 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.696 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.697 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.698 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.699 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.7 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE "posthog_tag"."id" IN ('00000000-0000-0000-0000-000000000000'::uuid, - '00000000-0000-0000-0000-000000000000'::uuid, - '00000000-0000-0000-0000-000000000000'::uuid /* ... */) - ' ---- -# name: TagsTestCase.test_tags_migrated.70 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.700 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.701 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.702 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.703 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.704 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.705 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.706 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.707 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.708 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.709 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.71 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.710 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.711 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.712 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.713 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.714 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.715 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.716 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.717 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.718 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.719 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.72 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.720 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.721 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.722 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.723 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.724 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.725 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.726 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.727 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.728 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.729 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.73 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.730 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.731 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.732 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.733 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.734 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.735 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.736 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.737 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.738 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.739 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.74 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.740 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.741 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.742 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.743 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.744 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.745 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.746 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.747 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.748 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.749 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.75 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.750 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.751 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.752 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.753 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.754 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.755 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.756 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.757 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.758 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.759 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.76 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.760 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.761 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.762 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.763 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.764 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.765 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.766 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.767 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.768 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.769 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.77 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.770 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.771 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.772 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.773 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.774 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.775 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.776 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.777 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.778 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.779 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.78 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.780 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.781 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.782 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.783 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.784 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.785 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.786 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.787 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.788 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.789 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.79 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.790 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.791 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.792 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.793 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.794 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.795 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.796 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.797 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.798 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.799 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.8 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'c' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.80 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.800 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.801 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.802 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.803 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.804 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.805 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.806 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.807 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.808 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.809 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.81 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.810 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.811 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.812 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.813 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.814 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.815 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.816 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.817 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.818 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.819 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.82 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.820 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.821 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.822 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.823 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.824 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.825 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.826 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.827 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.828 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.829 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.83 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.830 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.831 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.832 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.833 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.834 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.835 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.836 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.837 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.838 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.839 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.84 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.840 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.841 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.842 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.843 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.844 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.845 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.846 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.847 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.848 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.849 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.85 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.850 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.851 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.852 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.853 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.854 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.855 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.856 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.857 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.858 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.859 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.86 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.860 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.861 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.862 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.863 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.864 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.865 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.866 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.867 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.868 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.869 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.87 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.870 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.871 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.872 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.873 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.874 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.875 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.876 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.877 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.878 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.879 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.88 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.880 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.881 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.882 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.883 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.884 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.885 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.886 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.887 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.888 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.889 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.89 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.890 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.891 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.892 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.893 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.894 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.895 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.896 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.897 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.898 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.899 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.9 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.90 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.900 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.901 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.902 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.903 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.904 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.905 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.906 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.907 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.908 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.909 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.91 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.910 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.911 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.912 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.913 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.914 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.915 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.916 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.917 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.918 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.919 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.92 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.920 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.921 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.922 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.923 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.924 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.925 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.926 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.927 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.928 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.929 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.93 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.930 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.931 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.932 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.933 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.934 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.935 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.936 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.937 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.938 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.939 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.94 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.940 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.941 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.942 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.943 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.944 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.945 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.946 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.947 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.948 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.949 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.95 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.950 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.951 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.952 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.953 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.954 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.955 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.956 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.957 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.958 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.959 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.96 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.960 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.961 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.962 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.963 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.964 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.965 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.966 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.967 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.968 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.969 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.97 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.970 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.971 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.972 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.973 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.974 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.975 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.976 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.977 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.978 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.979 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.98 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.980 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.981 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.982 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.983 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.984 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.985 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.986 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.987 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.988 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.989 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.99 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.990 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.991 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.992 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.993 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.994 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.995 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.996 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.997 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.998 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- -# name: TagsTestCase.test_tags_migrated.999 - ' - SELECT "posthog_tag"."id", - "posthog_tag"."name", - "posthog_tag"."team_id" - FROM "posthog_tag" - WHERE ("posthog_tag"."name" = 'existing tag' - AND "posthog_tag"."team_id" = 2) - ORDER BY "posthog_tag"."id" ASC - LIMIT 1 - ' ---- diff --git a/ee/test/test_migration_0012.py b/ee/test/test_migration_0012.py deleted file mode 100644 index 2bfa0823eba..00000000000 --- a/ee/test/test_migration_0012.py +++ /dev/null @@ -1,105 +0,0 @@ -from django.db import transaction -from django.db.models import Q - -from posthog.models import Tag as TagModel -from posthog.models import TaggedItem as TaggedItemModel -from posthog.models import Team -from posthog.test.base import TestMigrations - - -class TagsTestCase(TestMigrations): - migrate_from = "0011_add_tags_back" - migrate_to = "0012_migrate_tags_v2" - assert_snapshots = True - - @property - def app(self): - return "ee" - - def setUpBeforeMigration(self, apps): - EnterpriseEventDefinition = apps.get_model("ee", "EnterpriseEventDefinition") - EnterprisePropertyDefinition = apps.get_model("ee", "EnterprisePropertyDefinition") - - # Setup - # apps.get_model("posthog", "Tag") doesn't work in setup because of a dependency issue - tag = TagModel.objects.create(name="existing tag", team_id=self.team.id) - self.event_definition = EnterpriseEventDefinition.objects.create( - team_id=self.team.id, - name="enterprise event", - deprecated_tags=["a", "b", "c", "a", "b", "existing tag", "", " ", None], - ) - self.property_definition_with_tags = EnterprisePropertyDefinition.objects.create( - team_id=self.team.id, name="property def with tags", deprecated_tags=["c", "d", "d", "existing tag"] - ) - self.property_definition_without_tags = EnterprisePropertyDefinition.objects.create( - team_id=self.team.id, name="property def without tags" - ) - TaggedItemModel.objects.create(tag=tag, property_definition_id=self.property_definition_with_tags.id) - - # Setup for batched tags - self.team2 = Team.objects.create( - organization=self.organization, - api_token="token12345", - test_account_filters=[ - {"key": "email", "value": "@posthog.com", "operator": "not_icontains", "type": "person"} - ], - ) - self.team2_total_property_definitions = 1_001 - tag2 = TagModel.objects.create(name="existing tag", team_id=self.team2.id) - with transaction.atomic(): - for _tag in range(self.team2_total_property_definitions): - EnterprisePropertyDefinition.objects.create( - name=f"batch_prop_{_tag}", team_id=self.team2.id, deprecated_tags=[_tag, "existing tag"] - ) - TaggedItemModel.objects.create( - tag=tag2, - property_definition_id=EnterprisePropertyDefinition.objects.filter(team_id=self.team2.id).first().id, - ) - - def test_tags_migrated(self): - Tag = self.apps.get_model("posthog", "Tag") # type: ignore - TaggedItem = self.apps.get_model("posthog", "TaggedItem") # type: ignore - EnterpriseEventDefinition = self.apps.get_model("ee", "EnterpriseEventDefinition") # type: ignore - EnterprisePropertyDefinition = self.apps.get_model("ee", "EnterprisePropertyDefinition") # type: ignore - - event_definition = EnterpriseEventDefinition.objects.get(id=self.event_definition.id) - self.assertEqual( - list(event_definition.tagged_items.order_by("tag__name").values_list("tag__name", flat=True)), - ["a", "b", "c", "existing tag"], - ) - - property_definition_with_tags = EnterprisePropertyDefinition.objects.get( - id=self.property_definition_with_tags.id - ) - self.assertEqual( - list(property_definition_with_tags.tagged_items.order_by("tag__name").values_list("tag__name", flat=True)), - ["c", "d", "existing tag"], - ) - - property_definition_without_tags = EnterprisePropertyDefinition.objects.get( - id=self.property_definition_without_tags.id - ) - self.assertEqual(property_definition_without_tags.tagged_items.count(), 0) - - self.assertEqual( - sorted(Tag.objects.filter(team_id=self.team.id).all().values_list("name", flat=True)), - ["a", "b", "c", "d", "existing tag"], - ) - - # By the end of the migration, the total count for team 2 should be - # Tags = team2_total_property_definitions + 2 + team1_tags - # TaggedItems = team2_total_property_definitions * 2 + team1_taggeditems - self.assertEqual(Tag.objects.all().count(), self.team2_total_property_definitions + 1 + 5) - self.assertEqual(TaggedItem.objects.all().count(), self.team2_total_property_definitions * 2 + 7) - - def tearDown(self): - EnterpriseEventDefinition = self.apps.get_model("ee", "EnterpriseEventDefinition") # type: ignore - EnterprisePropertyDefinition = self.apps.get_model("ee", "EnterprisePropertyDefinition") # type: ignore - - EnterprisePropertyDefinition.objects.filter( - Q(id__in=[self.property_definition_with_tags.id, self.property_definition_without_tags.id]) - | Q(name__startswith="batch_prop_") - ).delete() - EnterpriseEventDefinition.objects.filter(id=self.event_definition.id).delete() - Team.objects.get(id=self.team2.id).delete() - super().tearDown() diff --git a/frontend/src/lib/components/DefinitionPopover/DefinitionPopoverContents.tsx b/frontend/src/lib/components/DefinitionPopover/DefinitionPopoverContents.tsx index f0ad285b6b3..5a91cf828c2 100644 --- a/frontend/src/lib/components/DefinitionPopover/DefinitionPopoverContents.tsx +++ b/frontend/src/lib/components/DefinitionPopover/DefinitionPopoverContents.tsx @@ -90,17 +90,20 @@ function TaxonomyIntroductionSection(): JSX.Element { ) } -export function VerifiedEventCheckbox({ +export function VerifiedDefinitionCheckbox({ verified, + isProperty, onChange, compact = false, }: { verified: boolean + isProperty: boolean onChange: (nextVerified: boolean) => void compact?: boolean }): JSX.Element { - const copy = - 'Verified events are prioritized in filters and other selection components. Verifying an event is a signal to collaborators that this event should be used in favor of similar events.' + const copy = isProperty + ? 'Verifying a property is a signal to collaborators that this property should be used in favor of similar properties.' + : 'Verified events are prioritized in filters and other selection components. Verifying an event is a signal to collaborators that this event should be used in favor of similar events.' return (
@@ -111,7 +114,7 @@ export function VerifiedEventCheckbox({ }} > - Verified event + Verified {isProperty ? 'property' : 'event'} {compact && ( @@ -317,6 +320,7 @@ function DefinitionEdit(): JSX.Element { type, dirty, viewFullDetailUrl, + isProperty, } = useValues(definitionPopoverLogic) const { setLocalDefinition, handleCancel, handleSave } = useActions(definitionPopoverLogic) @@ -364,8 +368,9 @@ function DefinitionEdit(): JSX.Element { )} {definition && definition.name && !isPostHogProp(definition.name) && 'verified' in localDefinition && ( - { setLocalDefinition({ verified: nextVerified }) }} @@ -437,7 +442,7 @@ export function ControlledDefinitionPopover({ const icon = group.getIcon?.(definition || item) - // Must use `useEffect` here to hydrate popover card with newest item, since lifecycle of `ItemPopover` is controlled + // Must use `useEffect` here to hydrate popover card with the newest item, since lifecycle of `ItemPopover` is controlled // independently by `infiniteListLogic` useEffect(() => { setDefinition(item) diff --git a/frontend/src/scenes/data-management/definition/DefinitionEdit.tsx b/frontend/src/scenes/data-management/definition/DefinitionEdit.tsx index 4d2bad03891..29fc5f9b112 100644 --- a/frontend/src/scenes/data-management/definition/DefinitionEdit.tsx +++ b/frontend/src/scenes/data-management/definition/DefinitionEdit.tsx @@ -7,7 +7,7 @@ import { Field } from 'lib/forms/Field' import { LemonTextArea } from 'lib/lemon-ui/LemonTextArea/LemonTextArea' import { ObjectTags } from 'lib/components/ObjectTags/ObjectTags' import { getPropertyLabel, isPostHogProp } from 'lib/components/PropertyKeyInfo' -import { VerifiedEventCheckbox } from 'lib/components/DefinitionPopover/DefinitionPopoverContents' +import { VerifiedDefinitionCheckbox } from 'lib/components/DefinitionPopover/DefinitionPopoverContents' import { LemonSelect } from 'lib/lemon-ui/LemonSelect' import { Form } from 'kea-forms' import { tagsModel } from '~/models/tagsModel' @@ -15,14 +15,16 @@ import { LemonDivider } from 'lib/lemon-ui/LemonDivider' export function DefinitionEdit(props: DefinitionEditLogicProps): JSX.Element { const logic = definitionEditLogic(props) - const { definitionLoading, definition, hasTaxonomyFeatures, isEvent, isProperty } = useValues(logic) + const { definitionLoading, definition, hasTaxonomyFeatures, isProperty } = useValues(logic) const { setPageMode, saveDefinition } = useActions(logic) const { tags, tagsLoading } = useValues(tagsModel) + const showVerifiedCheckbox = hasTaxonomyFeatures && !isPostHogProp(definition.name) && 'verified' in definition + return (
)} - {hasTaxonomyFeatures && isEvent && !isPostHogProp(definition.name) && 'verified' in definition && ( + {showVerifiedCheckbox && (
{({ value, onChange }) => ( - { onChange(nextVerified) diff --git a/frontend/src/scenes/data-management/events/DefinitionHeader.tsx b/frontend/src/scenes/data-management/events/DefinitionHeader.tsx index 5432e2fed5d..37abad452f1 100644 --- a/frontend/src/scenes/data-management/events/DefinitionHeader.tsx +++ b/frontend/src/scenes/data-management/events/DefinitionHeader.tsx @@ -29,6 +29,13 @@ export function getPropertyDefinitionIcon(definition: PropertyDefinition): JSX.E ) } + if (!!definition.verified) { + return ( + + + + ) + } return ( diff --git a/frontend/src/types.ts b/frontend/src/types.ts index 972e7bbbfbc..4c9660f546b 100644 --- a/frontend/src/types.ts +++ b/frontend/src/types.ts @@ -2293,6 +2293,9 @@ export interface PropertyDefinition { last_seen_at?: string // TODO: Implement example?: string is_action?: boolean + verified?: boolean + verified_at?: string + verified_by?: string } export enum PropertyDefinitionState { diff --git a/latest_migrations.manifest b/latest_migrations.manifest index e3f376936a2..d35ff1687eb 100644 --- a/latest_migrations.manifest +++ b/latest_migrations.manifest @@ -2,7 +2,7 @@ admin: 0003_logentry_add_action_flag_choices auth: 0012_alter_user_first_name_max_length axes: 0006_remove_accesslog_trusted contenttypes: 0002_remove_content_type_name -ee: 0014_roles_memberships_and_resource_access +ee: 0015_add_verified_properties otp_static: 0002_throttling otp_totp: 0002_auto_20190420_0723 posthog: 0320_survey diff --git a/posthog/api/event_definition.py b/posthog/api/event_definition.py index eaa13884714..0b8317a09ba 100644 --- a/posthog/api/event_definition.py +++ b/posthog/api/event_definition.py @@ -87,7 +87,7 @@ class EventDefinitionViewSet( search_query, search_kwargs = term_search_filter_sql(self.search_fields, search) params = {"team_id": self.team_id, "is_posthog_event": "$%", **search_kwargs} - order, order_direction = self._ordering_params_from_request() + order_expressions = [self._ordering_params_from_request()] ingestion_taxonomy_is_available = self.organization.is_feature_available(AvailableFeature.INGESTION_TAXONOMY) is_enterprise = EE_AVAILABLE and ingestion_taxonomy_is_available @@ -103,6 +103,14 @@ class EventDefinitionViewSet( to_attr="prefetched_tags", ) ) + order_expressions = ( + [ + ("verified", "DESC"), + ("volume_30_day", "DESC"), + ] + if order_expressions == [("volume_30_day", "DESC")] + else order_expressions + ) else: event_definition_object_manager = EventDefinition.objects @@ -110,8 +118,7 @@ class EventDefinitionViewSet( event_type, is_enterprise=is_enterprise, conditions=search_query, - order_expr=order, - order_direction=order_direction, + order_expressions=order_expressions, ) return event_definition_object_manager.raw(sql, params=params) diff --git a/posthog/api/property_definition.py b/posthog/api/property_definition.py index f5c46f067c0..6e631406541 100644 --- a/posthog/api/property_definition.py +++ b/posthog/api/property_definition.py @@ -221,7 +221,8 @@ class QueryContext: }, ) - def as_sql(self): + def as_sql(self, order_by_verified: bool): + verified_ordering = "verified DESC NULLS LAST," if order_by_verified else "" query = f""" SELECT {self.property_definition_fields}, {self.event_property_field} AS is_seen_on_filtered_events FROM {self.table} @@ -232,7 +233,7 @@ class QueryContext: {self.excluded_properties_filter} {self.name_filter} {self.numerical_filter} {self.search_query} {self.event_property_filter} {self.is_feature_flag_filter} {self.event_name_filter} - ORDER BY is_seen_on_filtered_events DESC, posthog_propertydefinition.query_usage_30_day DESC NULLS LAST, posthog_propertydefinition.name ASC + ORDER BY {verified_ordering} is_seen_on_filtered_events DESC, posthog_propertydefinition.query_usage_30_day DESC NULLS LAST, posthog_propertydefinition.name ASC LIMIT {self.limit} OFFSET {self.offset} """ @@ -381,6 +382,7 @@ class PropertyDefinitionViewSet( ) use_enterprise_taxonomy = self.request.user.organization.is_feature_available(AvailableFeature.INGESTION_TAXONOMY) # type: ignore + order_by_verified = False if use_enterprise_taxonomy: try: from ee.models.property_definition import EnterprisePropertyDefinition @@ -399,6 +401,7 @@ class PropertyDefinitionViewSet( "tagged_items", queryset=TaggedItem.objects.select_related("tag"), to_attr="prefetched_tags" ) ) + order_by_verified = True except ImportError: use_enterprise_taxonomy = False @@ -442,7 +445,7 @@ class PropertyDefinitionViewSet( self.paginator.set_count(full_count) # type: ignore - return queryset.raw(query_context.as_sql(), params=query_context.params) + return queryset.raw(query_context.as_sql(order_by_verified), params=query_context.params) def get_serializer_class(self) -> Type[serializers.ModelSerializer]: serializer_class = self.serializer_class diff --git a/posthog/api/utils.py b/posthog/api/utils.py index 57dae270011..96b1eeb1695 100644 --- a/posthog/api/utils.py +++ b/posthog/api/utils.py @@ -1,7 +1,7 @@ import json import re from enum import Enum, auto -from typing import List, Literal, Optional, Union +from typing import List, Literal, Optional, Union, Tuple from uuid import UUID import structlog @@ -239,8 +239,7 @@ def create_event_definitions_sql( event_type: EventDefinitionType, is_enterprise: bool = False, conditions: str = "", - order_expr: str = "", - order_direction: Literal["ASC", "DESC"] = "DESC", + order_expressions: List[Tuple[str, Literal["ASC", "DESC"]]] = [], ) -> str: if is_enterprise: from ee.models import EnterpriseEventDefinition @@ -266,11 +265,13 @@ def create_event_definitions_sql( if event_type == EventDefinitionType.EVENT_POSTHOG: conditions += " AND posthog_eventdefinition.name LIKE %(is_posthog_event)s" - additional_ordering = ( - f"{order_expr} {order_direction} NULLS {'FIRST' if order_direction == 'ASC' else 'LAST'}, " - if order_expr - else "" - ) + additional_ordering = "" + for order_expression, order_direction in order_expressions: + additional_ordering += ( + f"{order_expression} {order_direction} NULLS {'FIRST' if order_direction == 'ASC' else 'LAST'}, " + if order_expression + else "" + ) return f""" SELECT {",".join(event_definition_fields)}