Show
Ignore:
Timestamp:
06/12/08 09:56:08 (4 years ago)
Author:
benoitg
Message:
  • Use bigint for dynamic abuse control byte values
  • UIAllowedBandwidth: Format values in a human-readable way
Files:
1 modified

Legend:

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

    r1351 r1352  
    4848 * Define current database schema version 
    4949 */ 
    50 define('REQUIRED_SCHEMA_VERSION', 61); 
     50define('REQUIRED_SCHEMA_VERSION', 62); 
    5151/** Used to test a new shecma version before modyfying the database */ 
    5252define('SCHEMA_UPDATE_TEST_MODE', false); 
     
    14051405         
    14061406    } 
    1407      
     1407    $new_schema_version = 62; 
     1408    if ($schema_version < $new_schema_version && $new_schema_version <= $targetSchema) { 
     1409        printUpdateVersion($new_schema_version); 
     1410        $sql .= "\n\nUPDATE schema_info SET value='$new_schema_version' WHERE tag='schema_version';\n"; 
     1411 
     1412        $sql .= "ALTER TABLE networks ALTER COLUMN connection_limit_network_max_total_bytes TYPE bigint;\n"; 
     1413        $sql .= "ALTER TABLE networks ALTER COLUMN connection_limit_node_max_total_bytes TYPE bigint;\n"; 
     1414 
     1415        $sql .= "ALTER TABLE nodes ALTER COLUMN connection_limit_node_max_total_bytes_override TYPE bigint;\n"; 
     1416         
     1417    } 
    14081418    /* 
    14091419     $new_schema_version = ;