-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Remove unused last_used column from access_tokens table #8972
Comments
This is a bit more of a faff than expected since sqlite cannot drop columns directly, e.g. check out |
So, it should be dropped from the sql files, right? And is it just required to be removed for sqlite or also for postgres. |
A new migration file needs to be added that drops the column.
It should be done for both. |
I was going through those files; I guess I have to create like a buffer table in the new migration file and copy the values from the previous one and then drop it. Then rename the new table. Am I right so far? |
That's pretty much what is done in |
Just add a new migration to the most recent There is a bit of documentation about the system at https://github.com/matrix-org/synapse/blob/develop/synapse/storage/prepare_database.py#L288, but it needs an update to be honest. |
Thanks |
Fixed in #9025. |
The
last_used
column onaccess_tokens
is unused, we should remove it.See #8970 (comment)_
The text was updated successfully, but these errors were encountered: