Skip to content

Commit a135aec

Browse files
committed
edit places that use optd crate name
Signed-off-by: Yuchen Liang <[email protected]>
1 parent 797b315 commit a135aec

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

diesel.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
[print_schema]
55
# The file diesel will write the generated schema to.
6-
file = "optd/src/storage/schema.rs"
6+
file = "optd-storage/src/storage/schema.rs"
77

88

99
# 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
1212

1313
[migrations_directory]
1414
# The directory where the migration files are located.
15-
dir = "optd/migrations"
15+
dir = "optd-storage/migrations"

docs/src/contributor_guide/diesel.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ To generate a new migration, use the following command:
1818
diesel migration generate <migration_name>
1919
```
2020

21-
Diesel CLI will create two empty files in the `optd/migrations` folder. You will see output that looks something like this:
21+
Diesel CLI will create two empty files in the `optd-storgage/migrations` folder. You will see output that looks something like this:
2222

2323
```shell
24-
Creating optd/migrations/2025-01-20-153830_<migration_name>/up.sql
25-
Creating optd/migrations/2025-01-20-153830_<migration_name>/down.sql
24+
Creating optd-storage/migrations/2025-01-20-153830_<migration_name>/up.sql
25+
Creating optd-storage/migrations/2025-01-20-153830_<migration_name>/down.sql
2626
```
2727

2828
The `up.sql` file should contain the changes you want to apply and `down.sql` should contain the command to revert the changes.

0 commit comments

Comments
 (0)