Skip to content

Commit 87e8a55

Browse files
0xPoeTurbo87
authored andcommitted
feat: add expiry_notification_at migration
Signed-off-by: hi-rustin <[email protected]>
1 parent 153a4b5 commit 87e8a55

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- Remove the `expiry_notification_at` column from the `api_tokens` table.
2+
ALTER TABLE api_tokens DROP expiry_notification_at;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ALTER TABLE api_tokens ADD expiry_notification_at TIMESTAMP;
2+
3+
COMMENT ON COLUMN api_tokens.expiry_notification_at IS 'timestamp of when the user was informed about their token''s impending expiration';

src/schema.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ diesel::table! {
8181
///
8282
/// (Automatically generated by Diesel.)
8383
expired_at -> Nullable<Timestamp>,
84+
/// timestamp of when the user was informed about their token's impending expiration
85+
expiry_notification_at -> Nullable<Timestamp>,
8486
}
8587
}
8688

src/worker/jobs/dump_db/dump-db.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ revoked = "private"
2929
crate_scopes = "private"
3030
endpoint_scopes = "private"
3131
expired_at = "private"
32+
expiry_notification_at = "private"
3233

3334
[background_jobs.columns]
3435
id = "private"

0 commit comments

Comments
 (0)