File tree 3 files changed +6
-6
lines changed
migrations/2022-02-21-211645_create_sessions
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
CREATE TABLE persistent_sessions
2
2
(
3
- id SERIAL
4
- CONSTRAINT persistent_sessions_pk
5
- PRIMARY KEY ,
3
+ id BIGSERIAL
4
+ CONSTRAINT persistent_sessions_pk
5
+ PRIMARY KEY ,
6
6
user_id INTEGER NOT NULL ,
7
7
hashed_token bytea NOT NULL ,
8
8
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL ,
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ use crate::util::token::SecureTokenKind;
18
18
#[ table_name = "persistent_sessions" ]
19
19
pub struct PersistentSession {
20
20
/// The id of this session.
21
- pub id : i32 ,
21
+ pub id : i64 ,
22
22
/// The user id associated with this session.
23
23
pub user_id : i32 ,
24
24
/// The token (hashed) that identifies the session.
Original file line number Diff line number Diff line change @@ -608,10 +608,10 @@ table! {
608
608
persistent_sessions ( id) {
609
609
/// The `id` column of the `persistent_sessions` table.
610
610
///
611
- /// Its SQL type is `Int4 `.
611
+ /// Its SQL type is `Int8 `.
612
612
///
613
613
/// (Automatically generated by Diesel.)
614
- id -> Int4 ,
614
+ id -> Int8 ,
615
615
/// The `user_id` column of the `persistent_sessions` table.
616
616
///
617
617
/// Its SQL type is `Int4`.
You can’t perform that action at this time.
0 commit comments