schema/cassandra/README.md
This directory contains the cassandra schema for every keyspace that cadence owns. The directory structure is as follows
./schema
- visibility/ -- Contains schema for visibility data models
- cadence/ -- Contains schema for default data models
- keyspace.cql -- Contains the keyspace definition
- schema.cql -- Contains the latest & greatest snapshot of the schema for the keyspace
- versioned
- v0.1/
- v0.2/ -- One directory per schema version change
- v1.0/
- manifest.json -- json file describing the change
- changes.cql -- changes in this version, only [CREATE, ALTER] commands are allowed
Q: How do I update existing schema ?
TestReadSchemaDirFromEmbeddings with your version x.xQ: What's the format of manifest.json
Example below:
{
"CurrVersion": "0.1",
"MinCompatibleVersion": "0.1",
"Description": "base version of schema",
"SchemaUpdateCqlFiles": [
"base.cql"
]
}