Open afnan opened 3 months ago
If i try simple migration
class Migration(migrations.Migration):
dependencies = [
('game', '0044_alter_playergamestats_managers'),
]
operations = [
# migrations.RunPython(create_partitions),
PostgresAddListPartition(
model_name="playergamestats",
name="pt1",
values=["2022", "111"],
),
]
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/django/db/migrations/executor.py", line 252, in apply_migration
state = migration.apply(state, schema_editor)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/django/db/migrations/migration.py", line 118, in apply
operation.state_forwards(self.app_label, project_state)
File "/usr/local/lib/python3.12/site-packages/psqlextra/backend/migrations/operations/add_list_partition.py", line 30, in state_forwards
model.add_partition(
^^^^^^^^^^^^^^^^^^^
AttributeError: 'ModelState' object has no attribute 'add_partition'
I am not able to go past the error of improper configuration.
this is my migration