Skip to content

Commit e0789c3

Browse files
committed
fixup the original migration
1 parent 8c22c5b commit e0789c3

1 file changed

Lines changed: 18 additions & 9 deletions

File tree

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# Generated by Django 4.2.21 on 2025-06-16 16:55
22

3-
import django.contrib.postgres.fields.hstore
3+
# import django.contrib.postgres.fields.hstore
44
# from django.contrib.postgres.operations import HStoreExtension
55

66
from django.db import migrations
7+
from django.db import models
78

89

910
class Migration(migrations.Migration):
@@ -13,29 +14,37 @@ class Migration(migrations.Migration):
1314
]
1415

1516
operations = [
16-
# The extension usage is annulated by the subsequent migration.
17-
# To avoid the operational overhead of enabling it in some environments,
18-
# we do not create it here anymore.
19-
# However, leave it commented out for reference/history.
17+
# # The extension usage is annulated by the subsequent migration.
18+
# # To avoid the operational overhead of enabling it in some environments,
19+
# # we do not create it here anymore.
20+
# # However, leave it commented out for reference/history.
2021
# HStoreExtension(),
2122
migrations.AddField(
2223
model_name="apiusagebucket",
2324
name="labels",
24-
field=django.contrib.postgres.fields.hstore.HStoreField(default=None),
25+
# This field is now a JSONField instead of HStoreField.
26+
# field=django.contrib.postgres.fields.hstore.HStoreField(default=dict),
27+
field=models.JSONField(default=dict),
2528
),
2629
migrations.AddField(
2730
model_name="apiusageraw",
2831
name="labels",
29-
field=django.contrib.postgres.fields.hstore.HStoreField(default=None),
32+
# This field is now a JSONField instead of HStoreField.
33+
# field=django.contrib.postgres.fields.hstore.HStoreField(default=dict),
34+
field=models.JSONField(default=dict),
3035
),
3136
migrations.AddField(
3237
model_name="featureevaluationbucket",
3338
name="labels",
34-
field=django.contrib.postgres.fields.hstore.HStoreField(default=None),
39+
# This field is now a JSONField instead of HStoreField.
40+
# field=django.contrib.postgres.fields.hstore.HStoreField(default=dict),
41+
field=models.JSONField(default=dict),
3542
),
3643
migrations.AddField(
3744
model_name="featureevaluationraw",
3845
name="labels",
39-
field=django.contrib.postgres.fields.hstore.HStoreField(default=None),
46+
# This field is now a JSONField instead of HStoreField.
47+
# field=django.contrib.postgres.fields.hstore.HStoreField(default=dict),
48+
field=models.JSONField(default=dict),
4049
),
4150
]

0 commit comments

Comments
 (0)