Skip to content

Commit

Permalink
edit places that use optd crate name
Browse files Browse the repository at this point in the history
Signed-off-by: Yuchen Liang <[email protected]>
  • Loading branch information
yliang412 committed Jan 21, 2025
1 parent 797b315 commit 1aef3f5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions diesel.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand All @@ -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"
6 changes: 3 additions & 3 deletions docs/src/contributor_guide/diesel.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ To generate a new migration, use the following command:
diesel migration generate <migration_name>
```

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_<migration_name>/up.sql
Creating optd/migrations/2025-01-20-153830_<migration_name>/down.sql
Creating optd-storage/migrations/2025-01-20-153830_<migration_name>/up.sql
Creating optd-storage/migrations/2025-01-20-153830_<migration_name>/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.
Expand Down
2 changes: 1 addition & 1 deletion optd-storage/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "optd"
name = "optd-storage"
version = "0.1.0"
edition = "2021"

Expand Down

0 comments on commit 1aef3f5

Please sign in to comment.