FOSSology  4.4.0
Open Source License Compliance by Open Source Software
dbmigrate_2.5-2.6.php File Reference

This file is called by fossinit.php to migrate from a 2.5 database to 2.6. Specifically, this is to set active group for current users, insert clearing decisions from license_file_audit table to support 2.6 decisions. More...

Go to the source code of this file.

Functions

 setActiveGroup ($verbose)
 Set active group for existing users from group_user_member table. More...
 
 blowAudit ($verbose)
 Copy decisions from license_file_audit table to clearing_decision @global type $dbManager. More...
 
 migrate_25_26 ($verbose)
 

Detailed Description

This file is called by fossinit.php to migrate from a 2.5 database to 2.6. Specifically, this is to set active group for current users, insert clearing decisions from license_file_audit table to support 2.6 decisions.

This should be called after fossinit calls apply_schema and table license_file_audit and clearing_decision exists.

Definition in file dbmigrate_2.5-2.6.php.

Function Documentation

◆ blowAudit()

blowAudit (   $verbose)

Copy decisions from license_file_audit table to clearing_decision @global type $dbManager.

Parameters
boolean$verbosetell about decisions
Returns
int number of inserted decisions

Definition at line 61 of file dbmigrate_2.5-2.6.php.

◆ migrate_25_26()

migrate_25_26 (   $verbose)

@global type $dbManager

Parameters
boolean$verbosetell about decisions
Returns
int number of inserted decisions

Definition at line 124 of file dbmigrate_2.5-2.6.php.

◆ setActiveGroup()

setActiveGroup (   $verbose)

Set active group for existing users from group_user_member table.

Returns
void

Definition at line 25 of file dbmigrate_2.5-2.6.php.