Skip to content

Commit

Permalink
token unique
Browse files Browse the repository at this point in the history
  • Loading branch information
Nutomic committed Aug 4, 2023
1 parent b664f25 commit 805e84d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/db_schema/src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -395,9 +395,9 @@ diesel::table! {
totp_2fa_secret -> Nullable<Text>,
totp_2fa_url -> Nullable<Text>,
open_links_in_new_tab -> Bool,
infinite_scroll_enabled -> Bool,
blur_nsfw -> Bool,
auto_expand -> Bool,
infinite_scroll_enabled -> Bool,
}
}

Expand Down
2 changes: 1 addition & 1 deletion migrations/2023-08-04-100313_login-token/up.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CREATE TABLE login_token (
id serial PRIMARY KEY,
token text NOT NULL,
token text NOT NULL UNIQUE,
user_id int REFERENCES local_user ON UPDATE CASCADE ON DELETE CASCADE NOT NULL
);

Expand Down

0 comments on commit 805e84d

Please sign in to comment.