FOSSology  3.2.0rc1
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 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 (   $verbose)

Copy decisions from license_file_audit table to clearing_decision type $dbManager.

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

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

migrate_25_26 (   $verbose)

type $dbManager

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

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

setActiveGroup (   $verbose)

Set active group for existing users from group_user_member table.

Returns
void

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