From the downloaded Locate upgrade scripts folder in distribution zip file. For example, extract the /database/oracle/upgrade, /upgrade folderdatabase/postgres/upgrade, /database/mysql/upgrade. This folder(s) includes a number of folders containing migration.sqland patch release SQL files, which upgrade the FlexDeploy schemas.
Warning |
---|
This documentation is for upgrade to FlexDeploy to 5.2 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.
Image Modified
Follow this guideline when deriving SQL files to be executed.
...
Code Block |
---|
language | sql |
---|
title | Upgrading 5.12.0.0 to 5.23.0.0 |
---|
linenumbers | true |
---|
|
v5.12.0.0-to-5.12.0.31/migration.sql
v5.1.0.3-to-v5.2.0.0/migration.sql |
Code Block |
---|
|
language | sql |
---|
title | Upgrading 5.0. | 0.0 (or 5.0.0.x) to 5.2.0.0linenumbers | true |
---|
v5.0.0.0-to-v5.1.0.0/migration.sql
v5.1.0.0-to-5.1.0.3/migration.sql
v5.1.0.3-to-v5.2.0.0/migration.sql |
Code Block |
---|
language | sql |
---|
title | Upgrading 45.61.0.0 (or 4.6.0.x) to 5.23.0.0 |
---|
linenumbers | true | collapse | true |
---|
|
v4.6.0.0-to-v5.0.0.0/migration.sql
v5.0.0.0-to-v5.1.0.0/migration.sql
v5.1.0.0-to-5.1.0.3/migration.sql
v5.1.0.3-to-v5.2.0.0/migration.sql |
Code Block |
---|
|
language | sql |
---|
title | Upgrading 4.0 to 5.2 | .0.0linenumbers | true |
---|
collapse | true |
---|
v4.0-to-v4.0.1/migration.sql
v4.0.1-to-v4.0.2/migration.sql
v4.0.2-to-v4.0.3/migration.sql
v4.0.3-to-v4.5.0/migration.sql
v4.5.0-to-v4.6.0.0/migration.sql
v4.6.0.0-to-v5.0.0.0/migration.sql
v5.0.0.0-to-v5.1.0.0v5.2.0.0-to-5.2.0.1/migration.sql
v5.1.0.0-to-5.1.0.3/migration.sql
v5.1.0.3-to-v5.2.0.0/migration.sql |
The 4.0.2-to-4.0.3/migration.sql file includes all of the 403PatchRelease*.sql files in it. Patch Release SQL files are only necessary if you are on a 4.0.3 or 4.5.x Release.
...
2.0.1-to-5.3.0.0/migration.sql |
...
Code Block |
---|
language | sql |
---|
title | Upgrading 4.0.3 (build time 4/23/2017 or earlier) to 5.2.0.0 |
---|
linenumbers | true |
---|
collapse | true |
---|
| v4.0.2-to-v4 | .3/403PatchRelease_04-24-2017.sql
v4 | .2-to-v4.0.3/403PatchRelease_05-01-2017.sql
v4.0.2-to-v4.0.3/403PatchRelease_05-5-2017.sql
v4.0.2-to-v4.0.3/403PatchRelease_05-11-2017.sql
v4.0.2-to-v4.0.3/403PatchRelease_05-22-2017.sql
v4.0.2-to-v4.0.3/403PatchRelease_06-14-2017.sql
v4.0.2-to-v4.0.3/403PatchRelease_07-19-2017.sql
v4.0.2-to-v4.0.3/403PatchRelease_07-24-2017.sql
v4.0.3-to-v4.5.0/migration.sql
v4.5.0-to-v4.6.0.0/migration.sql
v4.6.0.0-to-v5.0.0.0/migration.sql
v5.0.0.0-to-v5.1.0.0/migration.sql
v5.1.0.0-to-5.1.0.3/migration.sql
v5.1.0.3-to-v5.2.0.0/migration.sql
Code Block |
---|
language | sql |
---|
title | Upgrading 4.0.3 (build time 5/11/2017) to 5.2.0 (or 5.0.0.x) to 5.3.0.0 |
---|
linenumbers | true | collapse | true |
---|
|
v4.0.2-to-v4.0.3/403PatchRelease_05-22-2017.sql
v4.0.2-to-v4.0.3/403PatchRelease_06-14-2017.sql
v4.0.2-to-v4.0.3/403PatchRelease_07-19-2017.sql
v4.0.2-to-v4.0.3/403PatchRelease_07-24-2017.sql
v4.0.3-to-v4.5.0/migration.sql
v4.5.0-to-v4.6.0.0/migration.sql
v4.6.0.0-to-v5.0.0.0/migration.sql
v5.0.0.0-to-v5.1.0.0/migration.sql
v5.1.0.0-to-5.1.0.3/migration.sql
v5.1.0.3-to-v5.2.0.0/migration.sql |
Code Block |
---|
language | sql |
---|
title | Upgrading 4.5.1 Patch Release 11-27-2017 to 5.2.0.0 |
---|
linenumbers | true |
---|
collapse | true |
---|
|
v4.0.3-to-v4.5.0/450PatchRelease_12-09-2017.sql
v4.0.3-to-v4.5.0/450PatchRelease_01-12-2018.sql
v4.0.3-to-v4.5.0/450PatchRelease_01-30-2018.sql
v4.5.0-to-v4.6.0.0/migration.sql
v4.6.0.0-to-v5.0.0.0
v5.2.0.0-to-5.2.0.1/migration.sql
v5.0.0.0-to-v5.12.0.0/migration.sql
v5.1.0.0-to-5.1.0.3/migration.sql
v5.1.0.3-to-v5.2.0.0/migration.sql |
Executing migration files
...