Skip to content

Commit 977d8fb

Browse files
committed
CHANGELOG entry for infer_schema! deprecation
1 parent f5d3ab4 commit 977d8fb

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,19 @@ for Rust libraries in [RFC #1105](https://github.com/rust-lang/rfcs/blob/master/
5151

5252
### Deprecated
5353

54+
* `diesel_infer_schema` has been deprecated. `diesel print-schema` is now the
55+
only way to generate database schema. Diesel CLI can be configured to
56+
automatically regenerate your schema file when migrations are run. See
57+
diesel.rs/guides/configuring-diesel-cli for details.
58+
5459
* Uses of `sql_function!` in the form `sql_function!(foo, foo_t, (x: Integer))`
5560
have been deprecated in favor of a new design (listed above). Note: Due to [a
5661
bug in Rust](https://github.com/rust-lang/rust/issues/49912), you may not see
5762
a deprecation warning from usage of the old form. As always, if you're
5863
concerned about relying on deprecated code, we recommend attempting to build
5964
your app with `default-features` turned off (specifically excluding the
6065
`with-deprecated` feature).
66+
6167
* The `--whitelist` and `--blacklist` options to `diesel print-schema` have been
6268
deprecated and renamed `--only-tables` and `--exclude-tables`.
6369

0 commit comments

Comments
 (0)