Curator Plugin: What's required for a n:m-migration?

Hi, I just installed the Curator Plugin of @awcodes and I'm wondering what's the schema of a many-to-many migration? I can't find it within the docs and I am receiving the 3rd exception now, that a column is missing.
Filament
Curator by Adam Weston - Filament
A media manager / picker plugin for Filament Panels.
10 Replies
awcodes
awcodes13mo ago
What is the actual error? It’s a standard many to many setup. You don’t need to do anything specific. You would just need a pivot table and your other model table.
alexanderkroneis
alexanderkroneisOP13mo ago
I'm getting exceptions of missing columns in my pivot migration
Dennis Koch
Dennis Koch13mo ago
Share the error. Otherwise we are just guessing
alexanderkroneis
alexanderkroneisOP13mo ago
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'title' …
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'title' …
When I add title it‘s missing alt, if I add this, something else is missing. That‘s why: Is there a stub for n:m migrations? And can I upload mulitple media at once?
awcodes
awcodes13mo ago
did you run the install command? sounds like your missing the media table. or didn't migrate it. You can upload multiple media by setting using the 'multiple()' modifier on the CuratorPicker field component. but you can't upload multiple in the context of the Media resource.
alexanderkroneis
alexanderkroneisOP13mo ago
The media table is present, medium_product wasn‘t so I created it with 2 FKs Thanks!
awcodes
awcodes13mo ago
here's the demo app i use for testing. maybe compare your setup to what in https://github.com/awcodes/curator-demo
GitHub
GitHub - awcodes/curator-demo
Contribute to awcodes/curator-demo development by creating an account on GitHub.
alexanderkroneis
alexanderkroneisOP13mo ago
merci!
Dennis Koch
Dennis Koch13mo ago
For the future please share the Flare exception link as mentioned in #✅┊rules
alexanderkroneis
alexanderkroneisOP13mo ago
I‘ll 🤝 e.g. #Undefined array key "large_url" One of these exceptions I receive frequently
Want results from more Discord servers?
Add your server