diff --git a/diesel.toml b/diesel.toml index 2984b70..9a25cf5 100644 --- a/diesel.toml +++ b/diesel.toml @@ -3,7 +3,7 @@ [print_schema] # The file diesel will write the generated schema to. -file = "optd/src/storage/schema.rs" +file = "optd-storage/src/storage/schema.rs" # A column of type `INTEGER PRIMARY KEY` becomes an alias for the 64-bit signed integer `ROWID`. @@ -12,4 +12,4 @@ sqlite_integer_primary_key_is_bigint = true [migrations_directory] # The directory where the migration files are located. -dir = "optd/migrations" +dir = "optd-storage/migrations" diff --git a/docs/src/contributor_guide/diesel.md b/docs/src/contributor_guide/diesel.md index 42520fe..02516ec 100644 --- a/docs/src/contributor_guide/diesel.md +++ b/docs/src/contributor_guide/diesel.md @@ -18,11 +18,11 @@ To generate a new migration, use the following command: diesel migration generate ``` -Diesel CLI will create two empty files in the `optd/migrations` folder. You will see output that looks something like this: +Diesel CLI will create two empty files in the `optd-storgage/migrations` folder. You will see output that looks something like this: ```shell -Creating optd/migrations/2025-01-20-153830_/up.sql -Creating optd/migrations/2025-01-20-153830_/down.sql +Creating optd-storage/migrations/2025-01-20-153830_/up.sql +Creating optd-storage/migrations/2025-01-20-153830_/down.sql ``` The `up.sql` file should contain the changes you want to apply and `down.sql` should contain the command to revert the changes.