Skip to content

Commit

Permalink
schemerz-*: Change default table name
Browse files Browse the repository at this point in the history
This ensures we don't collide with `schemer` going forward.
  • Loading branch information
str4d committed Oct 15, 2024
1 parent 5a58a42 commit b71d382
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
6 changes: 6 additions & 0 deletions schemerz-postgres/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ and this library adheres to Rust's notion of
<!-- next-header -->
## [Unreleased]

### Changed
- **IMPORTANT BREAKING CHANGE**: `schemerz_postgres::PostgresAdapter::new` now
uses a default table name of `_schemerz` when the `table_name` argument is
`None`. If you were not setting this argument before and are migrating from
`schemer`, you will need to set `table_name` to `Some("_schemer".into())`.

## [0.190.0] - 2024-10-15
Initial release. The API is identical to `schemer-postgres 0.2.0`.

Expand Down
2 changes: 1 addition & 1 deletion schemerz-postgres/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ impl<'a> PostgresAdapter<'a> {
pub fn new(conn: &'a mut Client, table_name: Option<String>) -> PostgresAdapter<'a> {
PostgresAdapter {
conn,
migration_metadata_table: table_name.unwrap_or_else(|| "_schemer".into()),
migration_metadata_table: table_name.unwrap_or_else(|| "_schemerz".into()),
}
}

Expand Down
6 changes: 6 additions & 0 deletions schemerz-rusqlite/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ and this library adheres to Rust's notion of
<!-- next-header -->
## [Unreleased]

### Changed
- **IMPORTANT BREAKING CHANGE**: `schemerz_rusqlite::RusqliteAdapter::new` now
uses a default table name of `_schemerz` when the `table_name` argument is
`None`. If you were not setting this argument before and are migrating from
`schemer`, you will need to set `table_name` to `Some("_schemer".into())`.

## [0.290.0] - 2024-10-15
Initial release. The API is identical to `schemer-rusqlite 0.2.2`.

Expand Down
2 changes: 1 addition & 1 deletion schemerz-rusqlite/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ impl<'a, E> RusqliteAdapter<'a, E> {
pub fn new(conn: &'a mut Connection, table_name: Option<String>) -> RusqliteAdapter<'a, E> {
RusqliteAdapter {
conn,
migration_metadata_table: table_name.unwrap_or_else(|| "_schemer".into()),
migration_metadata_table: table_name.unwrap_or_else(|| "_schemerz".into()),
_err: PhantomData,
}
}
Expand Down

0 comments on commit b71d382

Please sign in to comment.