In that discussion, @sinisaos provided a quick-patch that, apparently made those backwards migrations to start working and this issue is about to consider that fix, or a better one.
(yes, it creates a composite index on migration, because the models don't support them)
And the problem is that, while piccolo migrations forwards myapp works and the index is created, trying to backwards it doesn't work at all, with the code not being invoked ever.
And that's it, so far. Again, the linked discussion has a "working" solution (tested here) and contains other details that may be of interest.
Hi,
this comes from https://github.com/piccolo-orm/piccolo/discussions/1121, where it was discussed about piccolo not executing backwards migrations (not sure which ones are and which ones aren't, I'm afraid).
In that discussion, @sinisaos provided a quick-patch that, apparently made those backwards migrations to start working and this issue is about to consider that fix, or a better one.
Basically, this is the migration step:
(yes, it creates a composite index on migration, because the models don't support them)
And the problem is that, while
piccolo migrations forwards myapp
works and the index is created, trying to backwards it doesn't work at all, with the code not being invoked ever.And that's it, so far. Again, the linked discussion has a "working" solution (tested here) and contains other details that may be of interest.
Ciao :-)