Skip to content

Files

migrations

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
May 17, 2024
Aug 7, 2024
Aug 7, 2024
Jun 14, 2024
Sep 11, 2024
Aug 23, 2024
Oct 1, 2024
Sep 20, 2024
Sep 18, 2024
Oct 8, 2024
Nov 7, 2024
Nov 21, 2024
Dec 5, 2024
Dec 10, 2024
Dec 13, 2024
Dec 20, 2024
Dec 21, 2024
Dec 21, 2024
Jan 9, 2025
Jan 27, 2025
Jan 17, 2025
Mar 6, 2025
Mar 8, 2025
Mar 6, 2025
Oct 30, 2024

Steps for setting up a diesel migration

Install the CLI onto your local system (one-time)

cargo install diesel_cli --no-default-features --features sqlite

Create your migration SQL

In this example the migration is called create_key_store:

diesel migration generate create_key_store

Edit the up.sql and down.sql files created

Generate application code

cargo run --bin update-schema --features update-schema

Make sure you run this from xmtp_mls/. This updates the generated schema.rs file. You can now update the models and queries to reference it in xmtp_mls/src/storage/encrypted_store/.