Module holochain_sqlite::schema
source · Expand description
Schema and migration definitions
To create a new migration, add a new Migration
object to the migrations
vec for a particular schema, and bump the current_index
by 1.
The Migration
must specify the actual forward migration script, as well as
an updated schema defining the result of running the migration.
Currently, the updated schema only serves as a point of reference for examining the current schema. In the future, we should find a way to compare the actual schema resulting from migrations with the schema provided, to make sure they match.
Note that there is code in build.rs
which fails the build if any schema or migration
file has a change according to git diff
. This will hopefully help prevent accidental
modification of schemas, which should never be committed.