Skip to main content
Historical upgrade notes. Check the maintenance policy for support status. These instructions describe this release, not the current installation defaults.
Read the notes for every version you cross. Use the upgrade checklist to plan backups, service interruption and recovery. Old commands using latest or stable must be resolved to the historical target release before use; they must not jump to today’s release. Formbricks v1.6 introduces key features like Advanced Targeting, Segmentation, on-the-fly survey triggers, and stability improvements. This update also changes some environment variables. Follow this guide to upgrade your Formbricks instance to v1.6 smoothly.
This upgrade requires a data migration. Ensure you back up your database before proceeding. Follow the steps below to upgrade your Formbricks instance to v1.6.

Steps to migrate

This guide is for users self-hosting Formbricks with our one-click setup. If you’re using a different setup, adjust the commands accordingly. Navigate to the Formbricks folder containing your docker-compose.yml file to run the steps.
  • Backup your Database: This is a crucial step. Please make sure to backup your database before proceeding with the upgrade. You can use the following command to backup your database:
If you run into “No such container”, use docker ps to find your container name, e.g. formbricks_postgres_1.
If you prefer storing the backup as a *.sql file remove the -Fc (custom format) option. In case of a restore scenario you will need to use psql then with an empty formbricks database.
  • Stop the running Formbricks instance & remove the related containers:
  • Restarting the containers will automatically pull the latest version of Formbricks:
  • Now let’s migrate the data to the latest schema:
To find your Docker Network name for your Postgres Database, find it using docker network ls
The above command will migrate your data to the latest schema. This is a crucial step to migrate your existing data to the new structure. Only if the script runs successful, changes are made to the database. The script can safely run multiple times.
  1. That’s it! Once the migration is complete, you can now access your Formbricks instance at the same URL as before.

Restoring the database after a failed upgrade

Replace the path to formbricks_pre_v1.6_<timestamp_of_your_dump_file>.dump with the exact path to your .dump file.
This will wipe the database and restore from the .dump file.

App surveys with @formbricks/js

If you’re using the @formbricks/js package, update it to version ~1.6.5 to access the latest features and improvements.
Currently, the package needs to be pinned to ~1.6.5, see this issue.

Upgrade and pin the client package

Deprecated environment variables