Show
Ignore:
Timestamp:
02/22/10 17:51:28 (2 years ago)
Author:
gbastien
Message:

Added a forgotten constraint to the hotspot_graph_element_has_content table to fix #701

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/wifidog/include/schema_validate.php

    r1435 r1451  
    4848 * Define current database schema version 
    4949 */ 
    50 define('REQUIRED_SCHEMA_VERSION', 68); 
     50define('REQUIRED_SCHEMA_VERSION', 69); 
    5151/** Used to test a new shecma version before modyfying the database */ 
    5252define('SCHEMA_UPDATE_TEST_MODE', false); 
     
    15251525    } 
    15261526     
    1527      
     1527    $new_schema_version = 69; 
     1528    if ($schema_version < $new_schema_version && $new_schema_version <= $targetSchema) { 
     1529        printUpdateVersion($new_schema_version); 
     1530        $sql .= "\n\nUPDATE schema_info SET value='$new_schema_version' WHERE tag='schema_version';\n"; 
     1531        $sql .= "\n\nALTER TABLE hotspot_graph_element_has_content ADD CONSTRAINT contentfk FOREIGN KEY (content_id) REFERENCES content(content_id) ON UPDATE CASCADE ON DELETE CASCADE;\n"; 
     1532    } 
     1533    
    15281534    /* 
    15291535     $new_schema_version = ;