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

This file is called by fo-postinstall, 2.0 database to 2.5. More...

Go to the source code of this file.

Functions

 Migrate_20_25 ($Verbose)
 Delete from copyright where pfile_fk not in (select pfile_pk from pfile) add foreign constraint on copyright pfile_fk if not exist. More...
 

Detailed Description

This file is called by fo-postinstall, 2.0 database to 2.5.

This should be called before fossinit calls apply_schema

Definition in file dbmigrate_2.0-2.5-pre.php.

Function Documentation

◆ Migrate_20_25()

Migrate_20_25 (   $Verbose)

Delete from copyright where pfile_fk not in (select pfile_pk from pfile) add foreign constraint on copyright pfile_fk if not exist.

Returns
int 0 on success, 1 on failure

add foreign key CONSTRAINT on pfile_fk of copyrigyt table when not exist

Definition at line 23 of file dbmigrate_2.0-2.5-pre.php.