FOSSology  4.4.0
Open Source License Compliance by Open Source Software
dbmigrate_1.4-2.0.php File Reference

This file is called by fossinit.php to create and initialize new ARS tables when migrating from a 1.4 database to 2.0. More...

Go to the source code of this file.

Functions

 Migrate_14_20 ($DryRun)
 Create the new ars tables and populate them from the job/jobqueue data. More...
 
 CreateARStable ($ARStablename)
 Create ars table. More...
 

Detailed Description

This file is called by fossinit.php to create and initialize new ARS tables when migrating from a 1.4 database to 2.0.

This should be called after fossinit calls apply_schema.

Definition in file dbmigrate_1.4-2.0.php.

Function Documentation

◆ CreateARStable()

CreateARStable (   $ARStablename)

Create ars table.

Parameters
string$ARStablenameARS table name
Returns
void

Definition at line 89 of file dbmigrate_1.4-2.0.php.

◆ Migrate_14_20()

Migrate_14_20 (   $DryRun)

Create the new ars tables and populate them from the job/jobqueue data.

Parameters
$DryRunDo not insert the ars records into the db. Just print the insert statements. The ars table will still be created if it doesn't exist.
Returns
int 0 on success, 1 on failure

Definition at line 25 of file dbmigrate_1.4-2.0.php.