Changeset 264

Show
Ignore:
Timestamp:
06/24/07 08:55:25 (1 year ago)
Author:
bermiferrer
Message:

Removing all the installer files once the application has been configured.
Making sure that the database schema is not cached on development mode.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/app/models/framework_setup.php

    r244 r264  
    709709    { 
    710710        @array_map(array('Ak','file_delete'),  array( 
     711        AK_APP_DIR.DS.'installers'.DS.'database_installer.php', 
    711712        AK_APP_DIR.DS.'installers'.DS.'framework_installer.php', 
     713        AK_APP_DIR.DS.'installers'.DS.'database_version.txt', 
     714        AK_APP_DIR.DS.'installers'.DS.'framework_version.txt', 
    712715        AK_APP_DIR.DS.'models'.DS.'framework_setup.php', 
    713716        AK_APP_DIR.DS.'controllers'.DS.'framework_setup_controller.php', 
  • trunk/config/development.php

    r260 r264  
    66define('AK_ENABLE_STRICT_XHTML_VALIDATION', false); // At least until the validator is fully tested 
    77 
    8 // Forces loading database schema on every call 
    9 if(isset($_SESSION['__activeRecordColumnsSettingsCache'])){ 
    10     unset($_SESSION['__activeRecordColumnsSettingsCache']); 
    11 } 
    12  
    138?> 
  • trunk/lib/AkActiveRecord.php

    r255 r264  
    3636defined('AK_IP4_REGULAR_EXPRESSION') ? null : define('AK_IP4_REGULAR_EXPRESSION',"/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/"); 
    3737defined('AK_POST_CODE_REGULAR_EXPRESSION') ? null : define('AK_POST_CODE_REGULAR_EXPRESSION',"/^[0-9A-Za-z  -]{2,9}$/"); 
     38 
     39// Forces loading database schema on every call 
     40if(AK_DEV_MODE && isset($_SESSION['__activeRecordColumnsSettingsCache'])){ 
     41    unset($_SESSION['__activeRecordColumnsSettingsCache']); 
     42} 
    3843 
    3944ak_compat('array_combine');