Right now, during a move from a DB without API tokens (4.0.0) to one with API tokens (4.0.1 and higher) we manually generate the tokens in `postgres.py`. Preferably, this needs to be done with a proper DB migrations file.
This only applies to unsupported versions.