Skip to content

feat: PasswordUpdatedAt column + auto-update with a fn and trigger - #301

Merged
spencewenski merged 3 commits into
mainfrom
gh-299-password-update-timestamp
Jul 29, 2024
Merged

feat: PasswordUpdatedAt column + auto-update with a fn and trigger#301
spencewenski merged 3 commits into
mainfrom
gh-299-password-update-timestamp

Conversation

@spencewenski

@spencewenski spencewenski commented Jul 29, 2024

Copy link
Copy Markdown
Member

Add a password_updated_at column to the user table, and add a function + trigger to automatically update the timestamp when the password column is updated.

closes #299

Add a `password_updated_at` column to the `user` table, and add a
function + trigger to automatically update the timestamp when the
password column is updated.
@codecov

codecov Bot commented Jul 29, 2024

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 51.59236% with 76 lines in your changes missing coverage. Please review.

Project coverage is 47.96%. Comparing base (9fae690) to head (5dc4f40).

Files Coverage Δ
...ion/user/m20240724_005115_user_update_timestamp.rs 0.00% <ø> (ø)
src/migration/user/mod.rs 100.00% <100.00%> (ø)
...ation/user/m20240729_000812_password_updated_at.rs 70.00% <70.00%> (ø)
...er/m20240729_002615_password_updated_at_trigger.rs 0.00% <0.00%> (ø)
...r/m20240729_002549_password_updated_at_function.rs 0.00% <0.00%> (ø)
src/migration/timestamp/mod.rs 56.27% <54.70%> (-0.22%) ⬇️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9fae690...5dc4f40. Read the comment docs.

@spencewenski
spencewenski merged commit 1b44d1f into main Jul 29, 2024
@spencewenski
spencewenski deleted the gh-299-password-update-timestamp branch July 29, 2024 02:16
@github-actions github-actions Bot mentioned this pull request Jul 29, 2024
spencewenski pushed a commit that referenced this pull request Jul 30, 2024
## 🤖 New release
* `roadster`: 0.5.11 -> 0.5.12

<details><summary><i><b>Changelog</b></i></summary><p>

<blockquote>

##
[0.5.12](roadster-v0.5.11...roadster-v0.5.12)
- 2024-07-29

### Added
- PasswordUpdatedAt column + auto-update with a fn and trigger
([#301](#301))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/MarcoIeni/release-plz/).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Password reset at timestamp in user table

1 participant