FOSSology  3.2.0rc1
Open Source License Compliance by Open Source Software
dbmigrate_3.6-3.7.php File Reference

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)
 
 moveObligation ($dbManager, $verbose)
 Get all obligations and move licenses. More...
 
 migrateReuseValueForEnhanceWithMainLicense ($dbManager)
 
 Migrate_36_37 ($dbManager, $verbose)
 

Detailed Description

Migrate DB from release 3.6.0 to 3.7.0 with new obligation fixes.

Definition in file dbmigrate_3.6-3.7.php.

Function Documentation

checkMigrate3637Required (   $dbManager)

Check if migration is required.

Parameters
DbManager$dbManager
Returns
boolean True if migration is required, false otherwise

Definition at line 77 of file dbmigrate_3.6-3.7.php.

Migrate_36_37 (   $dbManager,
  $verbose 
)

Migration from FOSSology 3.6.0 to 3.7.0

Parameters
DbManager$dbManager
boolean$dryRun

Definition at line 162 of file dbmigrate_3.6-3.7.php.

migrateReuseValueForEnhanceWithMainLicense (   $dbManager)

Check if Reuse value needs to be changed.

Parameters
DbManager$dbManager
Returns
boolean True value 8 exist, false otherwise

Definition at line 132 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.

Parameters
DbManager$dbManagerDB Manager to use
integer$obPkObligation ID
boolean$verboseSet TRUE to print verbose message
Returns
integer Number of entries deleted

Definition at line 35 of file dbmigrate_3.6-3.7.php.

moveObligation (   $dbManager,
  $verbose 
)

Get all obligations and move licenses.

Parameters
DbManager$dbManager
boolean$verbose

Definition at line 113 of file dbmigrate_3.6-3.7.php.