FOSSology  4.4.0
Open Source License Compliance by Open Source Software
dbmigrate_2.0-2.1.php File Reference

This file is called by fossinit.php to migrate from a 2.0 database to 2.1. More...

Go to the source code of this file.

Functions

 Migrate_20_21 ($DryRun)
 Migrate to the uploadtree_a table. More...
 
 RunSQL ($sql, $DryRun)
 Run a SQL query and return the result array. More...
 

Detailed Description

This file is called by fossinit.php to migrate from a 2.0 database to 2.1.

This should be called after fossinit calls apply_schema.

Definition in file dbmigrate_2.0-2.1.php.

Function Documentation

◆ Migrate_20_21()

Migrate_20_21 (   $DryRun)

Migrate to the uploadtree_a table.

Parameters
boolean$DryRunDo not create the table, just print the sql.
Returns
int 0 on success, 1 on failure

on fedora 18, the column name is 'exist', on other distritution, it is '?column?'

Definition at line 24 of file dbmigrate_2.0-2.1.php.

◆ RunSQL()

RunSQL (   $sql,
  $DryRun 
)

Run a SQL query and return the result array.

Parameters
string$sqlThe SQL query to be executed
boolean$DryRunDo not create the table, just print the sql.
Returns
mixed Result of $sql query

Definition at line 92 of file dbmigrate_2.0-2.1.php.