If upgrading to the next release, i.e. 4.0.1 to 4.0.2, then
Extract the downloaded zip and to retrieve the migration.sql. As sys or system, execute the migration.sql file to upgrade FlexDeploy schemas.
If upgrading more than one release (for instance 3.7.1 to 4.0.1 or 4.0 to 4.0.2, more steps are needed. Please contact Flexagon for help to be certain that the database migration is run correctly.