FOSSology  4.7.1
Open Source License Compliance by Open Source Software
dbmigrate_kotoba_candidate_licenses.php
Go to the documentation of this file.
1 <?php
2 /*
3  SPDX-FileCopyrightText: © 2026 Fossology contributors
4 
5  SPDX-License-Identifier: GPL-2.0-only
6 */
7 
23 {
24  global $PG_CONN;
25 
26  $sql = "ALTER TABLE \"custom_phrase_license_map\" "
27  . "DROP CONSTRAINT IF EXISTS \"custom_phrase_license_map_rf_fk_fkey\";";
28  $result = pg_query($PG_CONN, $sql);
29  DBCheckResult($result, $sql, __FILE__, __LINE__);
30  pg_free_result($result);
31 }
DBCheckResult($result, $sql, $filenm, $lineno)
Check the postgres result for unexpected errors. If found, treat them as fatal.
Definition: common-db.php:189
foreach($Options as $Option=> $OptVal) if(0==$reference_flag &&0==$nomos_flag) $PG_CONN