![]() |
FOSSology
3.2.0rc1
Open Source License Compliance by Open Source Software
|
Migrate DB from release 3.3.0 to 3.4.0 with new constraints. More...
Go to the source code of this file.
Functions | |
| cleanTableForeign ($dbManager, $tableToClean, $foreignKey, $referenceTable, $referenceKey, $dryRun) | |
| Delete all rows from the table which does not have reference. More... | |
| cleanWithUnique ($dbManager, $tableName, $primaryKey, $columnNames, $dryRun) | |
| Remove redundant rows based on values in columnNames. More... | |
| Migrate_33_34 ($dbManager, $dryRun) | |
Migrate DB from release 3.3.0 to 3.4.0 with new constraints.
Definition in file dbmigrate_3.3-3.4.php.
| cleanTableForeign | ( | $dbManager, | |
| $tableToClean, | |||
| $foreignKey, | |||
| $referenceTable, | |||
| $referenceKey, | |||
| $dryRun | |||
| ) |
Delete all rows from the table which does not have reference.
For foreign key constraints.
| DbManager | $dbManager | DB Manager to use |
| string | $tableToClean | Dirty table |
| string | $foreignKey | Foreign key of dirty table |
| string | $referenceTable | Table to be referenced |
| string | $referenceKey | Reference key of referenced table |
| boolean | $dryRun | Set TRUE to make a dry run |
Definition at line 37 of file dbmigrate_3.3-3.4.php.
| cleanWithUnique | ( | $dbManager, | |
| $tableName, | |||
| $primaryKey, | |||
| $columnNames, | |||
| $dryRun | |||
| ) |
Remove redundant rows based on values in columnNames.
For unique constraints.
| DbManager | $dbManager | |
| string | $tableName | |
| string | $primaryKey | |
| string[] | $columnNames | |
| boolean | $dryRun |
Definition at line 84 of file dbmigrate_3.3-3.4.php.
| Migrate_33_34 | ( | $dbManager, | |
| $dryRun | |||
| ) |
Migration from FOSSology 3.3.0 to 3.4.0
| DbManager | $dbManager | |
| boolean | $dryRun |
Definition at line 136 of file dbmigrate_3.3-3.4.php.