Locate upgrade scripts folder in distribution zip file. For example, /database/oracle/upgrade, /database/postgres/upgrade, /database/mysql/upgrade. This folder(s) includes a number of folders containing migration.sql, which upgrade the FlexDeploy schemas.
...
This documentation is for upgrade to FlexDeploy to 5.3 but this statement may still apply if your upgrading from version prior to FlexDeploy 5.1.
FlexDeploy 5.1 migration included updates to Unique Constraint for FF.DB_PROPERTIES_DATA. If you have duplicates then it needs to be fixed up prior to starting migration. Run following SQL to check if there are any duplicates. If there are duplicates, work with Flexagon support team to resolve prior to migration.
Code Block | ||||
---|---|---|---|---|
| ||||
SELECT * FROM (SELECT DB_PROPERTIES_ID, SEQUENCE_NUMBER, COUNT(1) NUMROWS
FROM FF.DB_PROPERTIES_DATA
GROUP BY DB_PROPERTIES_ID, SEQUENCE_NUMBER)
WHERE NUMROWS>1; |
You will need to execute one or more SQL script(s) from the version of FlexDeploy you currently have, up to the latest version. And they must be executed in that order.
Follow this guideline when deriving SQL files to be executed.
...
Current version is 4.6.0.0 or higher
- Look at Build Version in About window.
Current version is before 4.6.0.0
...
See some examples below to help you understand database upgrade process.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
v5.2.0.0-to-5.2.0.1/migration.sql v5.2.0.1-to-5.3.0.0/migration.sql | ||||||
Code Block | ||||||
language | sql | title | Upgrading 5.1.0.0 to 5v5.3.0.0 | |||
linenumbers | true | v5.1.0.0-to-5v5.13.0.32/migration.sql v5.13.0.32-to-v5.23.0.03/migration.sql v5.23.0.03-to-5v5.23.0.14/migration.sql v5.23.0.14-to-5v5.34.0.0/migration.sql |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
v5.03.0.0-to-v5.13.0.02/migration.sql v5.13.0.02-to-5v5.13.0.3/migration.sql v5.3.0.3-to-v5.13.0.4/migration.sql v5.3.0.4-to-v5.24.0.0/migration.sql |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
v5.3.0.2-to-v5.3.0.3/migration.sql v5.3.0.3-to-5v5.23.0.14/migration.sql v5.23.0.14-to-5v5.34.0.0/migration.sql |
Executing migration files
...