## Bug description
Hi, after upgrade from 1.23.1 to 1.24.0 we see in the migration this error
```
django.db.utils.NotSupportedError: cannot create index on partitioned table "posthog_event" concurrently
``` 

We have the events table partitioned using the inbuilt tool and apparently the migration does not handle that well. 

## Environment
Self-hosted instance running in Kubernetes using upstream docker images
posthog/migrations/0143_user_uuid.py
from django.db import migrations, models
import posthog.models.utils
def create_user_uuid(apps, schema_editor):
    User = apps.get_model("posthog", "User")
    for user in User.objects.all():
        user.uuid = posthog.models.utils.UUIDT()
        user.save()
class Migration(migrations.Migration):
    dependencies = [
        ("posthog", "0142_fix_team_data_attributes_default"),
    ]
    operations = [
        migrations.AddField(model_name="user", name="uuid", field=models.UUIDField(blank=True, null=True),),
        migrations.RunPython(create_user_uuid),
        migrations.AlterField(
            model_name="user",
            name="uuid",
            field=models.UUIDField(default=posthog.models.utils.UUIDT, unique=True, editable=False),
        ),
    ]