#community-help

Updating Collection Schemas in Databases

TLDR Chris wanted to know about updating collection schemas. James and Jason provided insights and mentioned an upcoming solution for in-place schema changes.

Powered by Struct AI

3

2

1

1

Sep 19, 2021 (28 months ago)
Chris
Photo of md5-62dc2007b34e88e4eb44446e8bd29e39
Chris
04:40 PM
Is it possible to update a collections schema? Or do you have to drop the whole collection and recreate it?
James
Photo of md5-ae7223c767d7228418baf97773be94d6
James
04:59 PM
I believe the going process is to create an alias to the collection(s) and then create a new collection that has the schema changes and repoint the alias to the new collection.

1

1

Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
05:39 PM
What James said.

We’ll be introducing a way to do in-place schema changes in the release after the upcoming one

3

2