From a32510e2ffc8fd8c601dd80328c9a02892a0d50c Mon Sep 17 00:00:00 2001 From: trivernis Date: Wed, 18 Nov 2020 19:04:20 +0100 Subject: [PATCH] Change user attribute data type to JSONB Signed-off-by: trivernis --- src/database/users.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/database/users.rs b/src/database/users.rs index c292fc6..4c17352 100644 --- a/src/database/users.rs +++ b/src/database/users.rs @@ -40,7 +40,7 @@ impl Table for Users { email VARCHAR(255) UNIQUE NOT NULL, password_hash BYTEA NOT NULL, salt BYTEA NOT NULL, - attributes JSON NOT NULL DEFAULT '{}' + attributes JSONB NOT NULL DEFAULT '{}' );", )?;