This message was deleted.
# community-help
s
This message was deleted.
d
We wrote a small script, which checks current collections, schemas, synonyms, overrides and api-keys, compares them to yaml file and then sends requests to API
k
For comparing schema changes, do you persist the old schema somewhere or is this done during build/deploy time?
Or versioned in code, maybe?
d
You can retrieve current schema from Typesense API. Main pain is that fields are immutable, so if you’re adding some parameter to field you have to delete and create it in one API call. Also collections have some immutable fields too
We have VCS for this yaml file, yes. We run this script after running typesense (through kubernetes job in one helm chart)
👍 1
k
Delete the collection or the field? Is it possible to just delete a field? Can’t find such a thing in the API.
You can call PATCH API with
"drop": true
and it will delete a field
🎉 1
k
Got it, thanks for the doc, I think this should help me tackle this!
d
Also this terraform provider can be useful: https://github.com/Kekenika/terraform-provider-typesense
👍 1