This section describes the changes to the database since Trip Server v1.
All the following changes can be implemented by running
trip-server with the --upgrade option.
The pgcrypto extension is needed for user password validation.
Run the following command in the Trip database:
$ psql trip CREATE EXTENSION pgcrypto;
The Blowfish algorithm appears to have been changed in PostgreSQL 13. The following SQL will update old style encrypted passwords to work in PostgreSQL 13.
UPDATE usertable SET password = '$2a' || SUBSTRING(password, 4, 57) WHERE password NOT LIKE '$2a%';