Closed Shubhechchha closed 9 months ago
I had a similar problem trying to get started myself. If you look at the documentation, it depends on the initial tree
migration. I believe that migration is the one that creates the postgresql function update_paths()
from django.db import migrations
from tree.operations import CreateTreeTrigger
class Migration(migrations.Migration):
dependencies = [
('tree', '0001_initial'),
]
operations = [
CreateTreeTrigger('your_app.YourModel'),
]
Your migration file depends only on ('relationship', '0001_initial'),
but it also needs to depend on ('tree', '0001_initial'),
(or perhaps only on the tree initial) migration in order to work.
Thank you @MikeSandford! This should indeed be the correct solution. Marking the issue as solved, please reopen if it happens again for a different reason.
Hi there,
My current setup is: Python 3.6 Django 2.0 Postgresql 10.1
I have created a Model and added the respective migraiton for trigger.
Upon running the migrate command, I get the following error:
Could you provide some suggestions?