v1.33

umami-software/umamiv1.33Jun 27, 2022by mikecao

AI Summary

Introduced Prisma migrations for the first time, simplifying the installation process and removing the requirement for manual database steps and the `HASH_SALT` environment variable.

Key Highlights

  • First use of Prisma migrations with a new `check-db` script.
  • Installation process simplified (no manual database setup).
  • Removed `HASH_SALT` requirement.
  • New Galician language.

Breaking Changes

  • Installation process changed to use Prisma migrations.
  • `HASH_SALT` environment variable no longer required.

New Features

  • Galician language.
  • `IGNORE_HOSTNAME` environment variable.
  • `DISABLE_UPDATES` environment variable.

Full Release Notes

## Important
This release will use Prisma migrations for the first time. This will help up make schema changes quickly and easily in the future in order to support new upcoming features. A new script called `check-db` has been added and will run before starting the app. It verifies that your database connection is defined and working and that your schema is up to date. The script will inform you what commands you need to run to get your database up to date. **You need to run the given command manually.** The message will looks something like this:

```
āœ— Database is out of date.

You need to update your database by running:

yarn prisma migrate resolve --applied "20210320112717_init"
```

Also as a result of this change, the installation process will be much easier for new installations. There is no longer a manual database step to set up the tables. It will all be handled through Prisma. Additionally, defining the `HASH_SALT` environment variable is no longer required, but optional if you still want to use it.

## Features
- New language: Galacian! šŸ’Æ 
- Added `IGNORE_HOSTNAME` environment variable. This will do a DNS lookup on a hostname and the resulting IP address will be ignored. This can be a comma delimited list of hostnames. 
- Added `DISABLE_UPDATES` environment variable which disables the new version check.

## Updates
- Start using Prisma database migrations.
- Removed `HASH_SALT` requirement.
- Language translation updates
- Updated Prisma to `v3.15.2`

## Fixes
- Fixed display of encoded characters
- Moved `DISABLE_LOGIN` check from middleware to build step since it has been causing issues on Vercel.
- Removed `password` field from accounts query

A huge thanks to all the contributors on this release! @anbraten @userdehghani @bilguun0203 @valtlfelipe @saosangmo @Maxime-J