I detected an error reported by postgresql.log:
mmuser@mattermost ERROR: relation "useraccesstokens" does not exist at character 139
I didn’t find the error in Mattermost logs maybe because we are not using this table!?
The problem is there since the migration from mysql to postgresql.
I renamed the table from user_access_tokens to useraccesstokens, then create 2 missing columns and recreate the indexes accordingly the information that I got…but I would like if someone can confirm that the following set for this table is correct:
mattermost=> \d+ useraccesstokens
Table "public.useraccesstokens"
Column | Type | Collation | Nullable | Default | Storage |
----------------+-----------------------+-----------+----------+---------+----------+ ...
id | character varying(26) | | not null | | extended |
token | character varying(26) | | | | extended |
userid | character varying(26) | | | | extended |
description | text | | | | extended |
isactive | boolean | | | | plain |
expiresat | bigint | | | 0 | plain |
lastnotifiedat | bigint | | | 0 | plain |
Indexes:
"useraccesstokens_pkey" PRIMARY KEY, btree (id)
"idx_user_access_tokens_user_id" btree (userid)
"idx_useraccesstokens_expiresat" btree (expiresat) WHERE expiresat <> 0
"useraccesstokens_token_key" UNIQUE, btree (token)
Access method: heap
Thank you.