FOSSology
4.4.0
Open Source License Compliance by Open Source Software
|
Migrate DB from release 3.6.0 to 3.7.0 with new obligation fixes. More...
Go to the source code of this file.
Functions | |
moveCandidateLicenseMap ($dbManager, $obPk, $verbose) | |
Move licenses from obligation map to obligation candidate map. More... | |
checkMigrate3637Required ($dbManager) | |
getLicConObligationMigrate ($dbManager) | |
moveObligation ($dbManager, $verbose) | |
Get all obligations and move licenses. More... | |
migrateReuseValueForEnhanceWithMainLicense ($dbManager) | |
removeNonConcLicensesFromObligation ($dbManager, $migrationData) | |
Remove identified licenses from obligations. More... | |
Migrate_36_37 ($dbManager, $verbose) | |
Migrate DB from release 3.6.0 to 3.7.0 with new obligation fixes.
Definition in file dbmigrate_3.6-3.7.php.
checkMigrate3637Required | ( | $dbManager | ) |
Check if migration is required.
DbManager | $dbManager |
Definition at line 70 of file dbmigrate_3.6-3.7.php.
getLicConObligationMigrate | ( | $dbManager | ) |
Get the entries for which migration is required for non concluded licenses.
DbManager | $dbManager |
Definition at line 107 of file dbmigrate_3.6-3.7.php.
Migrate_36_37 | ( | $dbManager, | |
$verbose | |||
) |
Migration from FOSSology 3.6.0 to 3.7.0
DbManager | $dbManager | |
boolean | $verbose |
Definition at line 229 of file dbmigrate_3.6-3.7.php.
migrateReuseValueForEnhanceWithMainLicense | ( | $dbManager | ) |
Check if Reuse value needs to be changed.
DbManager | $dbManager |
Definition at line 155 of file dbmigrate_3.6-3.7.php.
moveCandidateLicenseMap | ( | $dbManager, | |
$obPk, | |||
$verbose | |||
) |
Move licenses from obligation map to obligation candidate map.
Remove licenses from obligation_map which are candidate license and add them to obligation_candidate_map.
DbManager | $dbManager | DB Manager to use |
integer | $obPk | Obligation ID |
boolean | $verbose | Set TRUE to print verbose message |
Definition at line 28 of file dbmigrate_3.6-3.7.php.
moveObligation | ( | $dbManager, | |
$verbose | |||
) |
Get all obligations and move licenses.
DbManager | $dbManager | |
boolean | $verbose |
Definition at line 136 of file dbmigrate_3.6-3.7.php.
removeNonConcLicensesFromObligation | ( | $dbManager, | |
$migrationData | |||
) |
Remove identified licenses from obligations.
The function removes the obligation map sent from $migrationData. To do so, the function first gets the list of licenses along with their parent license. Then makes sure that the parent is part of the obligation to prevent data loss. Then it finally removes the obligation map.
DbManager | $dbManager | |
array | $migrationData |
Definition at line 191 of file dbmigrate_3.6-3.7.php.