FOSSology  4.4.0
Open Source License Compliance by Open Source Software
dbmigrate_2.1-2.2.php File Reference

This file is called by fossinit.php to migrate from a 2.1 database to 2.2.
Specifically, this is to create new groups, group_user_member, perm_upload and perm_folder records to support 2.2 permissions. More...

Go to the source code of this file.

Functions

 Migrate_21_22 ($Verbose)
 Create new groups, group_user_member, perm_upload and perm_folder records to support 2.2 permissions. More...
 

Detailed Description

This file is called by fossinit.php to migrate from a 2.1 database to 2.2.
Specifically, this is to create new groups, group_user_member, perm_upload and perm_folder records to support 2.2 permissions.

This should be called after fossinit calls apply_schema and can be run multiple times without harm.

Definition in file dbmigrate_2.1-2.2.php.

Function Documentation

◆ Migrate_21_22()

Migrate_21_22 (   $Verbose)

Create new groups, group_user_member, perm_upload and perm_folder records to support 2.2 permissions.

Parameters
boolean$VerbosePrint verbose debugging messages
Returns
int 0 on success, 1 on failure

delete GlobalBrowse field if exist

add UNIQUE CONSTRAINT on rf_shortname column of licenser_ref table when not exist

Clean uploadtree_a table

add foreign key CONSTRAINT on upload_fk of uploadtree_a table when not exist

Run program to rename licenses

when the version is less than or equal to svn 6922, when we switch to git, always greater than 6932, call Update reference licenses process

Clear out the report cache

Definition at line 30 of file dbmigrate_2.1-2.2.php.