From 036b81f271c9c9c736a0417aba17b0b12f6eaee7 Mon Sep 17 00:00:00 2001 From: eric Date: Mon, 11 Sep 2023 11:24:59 -0400 Subject: [PATCH] fix migrations --- frontend/src/scenes/data-warehouse/DataWarehouseTable.tsx | 2 +- posthog/migrations/0348_alter_datawarehousetable_format.py | 4 +--- posthog/warehouse/models/table.py | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/frontend/src/scenes/data-warehouse/DataWarehouseTable.tsx b/frontend/src/scenes/data-warehouse/DataWarehouseTable.tsx index 6a2b1c6cf4652..1e08802023bf7 100644 --- a/frontend/src/scenes/data-warehouse/DataWarehouseTable.tsx +++ b/frontend/src/scenes/data-warehouse/DataWarehouseTable.tsx @@ -106,7 +106,7 @@ export function TableForm({ id }: { id: string }): JSX.Element { options={[ { label: 'Parquet (recommended)', value: 'Parquet' }, { label: 'CSV', value: 'CSV' }, - { label: 'JSON', value: 'JSONEachRow' }, + { label: 'JSON', value: 'JSON' }, ]} /> diff --git a/posthog/migrations/0348_alter_datawarehousetable_format.py b/posthog/migrations/0348_alter_datawarehousetable_format.py index eb86f3b4b41bc..989677d6c143e 100644 --- a/posthog/migrations/0348_alter_datawarehousetable_format.py +++ b/posthog/migrations/0348_alter_datawarehousetable_format.py @@ -13,8 +13,6 @@ class Migration(migrations.Migration): migrations.AlterField( model_name="datawarehousetable", name="format", - field=models.CharField( - choices=[("CSV", "CSV"), ("Parquet", "Parquet"), ("JSONEachRow", "JSON")], max_length=128 - ), + field=models.CharField(choices=[("CSV", "CSV"), ("Parquet", "Parquet"), ("JSON", "JSON")], max_length=128), ), ] diff --git a/posthog/warehouse/models/table.py b/posthog/warehouse/models/table.py index 411bf459aa1ed..dee83a32ee237 100644 --- a/posthog/warehouse/models/table.py +++ b/posthog/warehouse/models/table.py @@ -47,7 +47,7 @@ class DataWarehouseTable(CreatedMetaFields, UUIDModel, DeletedMetaFields): class TableFormat(models.TextChoices): CSV = "CSV", "CSV" Parquet = "Parquet", "Parquet" - JSON = "JSONEachRow", "JSON" + JSON = "JSON", "JSON" name: models.CharField = models.CharField(max_length=128) format: models.CharField = models.CharField(max_length=128, choices=TableFormat.choices)