Skip to content

Commit

Permalink
fix migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
EDsCODE committed Sep 11, 2023
1 parent 44ff2a0 commit 036b81f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion frontend/src/scenes/data-warehouse/DataWarehouseTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
]}
/>
</Field>
Expand Down
4 changes: 1 addition & 3 deletions posthog/migrations/0348_alter_datawarehousetable_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
),
]
2 changes: 1 addition & 1 deletion posthog/warehouse/models/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 036b81f

Please sign in to comment.