...
Warning |
---|
This documentation is for upgrade to FlexDeploy to 5.2 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; |
|
Warning |
---|
FlexDeploy 5.2 introduced credentials. Run following SQL prior to running upgrade scripts and make sure no rows are returned. If there are any row returned, it is possible that migration may not work correctly, in which case contact us via support portal. Code Block |
---|
| SELECT
kd.property_key_name, k.*
FROM
fd.property_key k,
fd.property_key_definition kd,
fd.property_value pv
WHERE
k.property_definition_id = kd.property_definition_id
AND pv.sequence_number = 0
AND k.property_key_id = pv.property_key_id
AND kd.is_encrypted = 'Y'
AND k.is_encrypted = 'N'
AND pv.property_value not in ('<NOT CONFIGURED>', '<OPTIONAL>'); |
|
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.
...
See some examples below to help you understand database upgrade process.
Code Block |
---|
language | sql |
---|
title | Upgrading 5.1.0.0 to 5.2.0.0 |
---|
linenumbers | true |
---|
|
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 5.0.0.0 (or 5.0.0.x) to 5.2.0.0 |
---|
linenumbers | 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 4.6.0.0 (or 4.6.0.x) to 5.02.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.02.0.0 |
---|
linenumbers | 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.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 |
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.
...
Code Block |
---|
language | sql |
---|
title | Upgrading 4.0.3 (build time 4/23/2017 or earlier) to 5.02.0.0 |
---|
linenumbers | true |
---|
collapse | true |
---|
|
v4.0.2-to-v4.0.3/403PatchRelease_04-24-2017.sql
v4.0.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.02.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.02.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/migration.sql
v5.0.0.0-to-v5.1.0.0/migration.sqsql
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
...