Closed daxomy closed 1 week ago
As far as I understand from the video the problem seems related to the unique constraint but note that the unique constraint is handled on SQLite level.
In your case the issue seems to be related to the fact that the index is created with the same name for each collection, aka. the last saved collection will most likely delete the previous index. Or in other words - use a unique index name.
I'll ~consider adding~ (done) a validator with the refactored Collection model for this use case to prevent duplicated collection index names.
https://github.com/pocketbase/pocketbase/assets/20862517/db9ef546-ee78-4035-8a28-28b9fff1fec4
Reproduced on v0.22.14