2.0 KiB
id | title |
---|---|
migration_guide | Migration Guide |
Generally, the intention is that unleash-server
should always provide support for clients one major version lower than the current one. This should make it possible to upgrade unleash
gradually.
Upgrading from v2.x to v3.x
The notable change introduced in Unleash v3.x is a strict separation of API paths for client requests and admin requests. This makes it easier to implement different authentication mechanisms for the admin UI and all unleash-clients. You can read more about securing unleash.
The recommended approach is to first upgrade the unleash-server
to v3 (which still supports v2 clients). After this is done, you should upgrade all your clients to v3.
After upgrading all your clients, you should consider turning off legacy routes, used by v2 clients. Read more about this option in the Getting started guide.
Upgrading from v1.0 to v2.0
Caveat 1: Not used db-migrate to migrate the unleash database?
In FINN we used liquibase, for internal reasons, to migrate our database.
Because unleash from version 2.0 migrates the database internally, with db-migrate, you need to make sure that all previous migrations for version 1 exist, so that Unleash does not try to create already existing tables.
How to check?
If you don't have a "migrations" table with 7 unique migrations you are affected by this.
How to fix?
Before starting unleash version 2 you have to run the SQL located under scripts/fix-migrations-version-1.sql
Caveat 2: databaseUrl (not databaseUri)
Using Unleash as a library and injecting your own config? Then you should know that we changed the databaseUri
config param name to databaseUrl. This is to make sure the param is aligned with the environment variable DATABASE_URL
and avoid multiple names for the same config param.