Ignore:
Timestamp:
Jul 13, 2015 8:48:29 PM (9 years ago)
Author:
anonymous
Message:

Adapted module maker scripts to use the new cli config file. Updated config to load codebase classes from its own codebase dir.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/init_codebase_tables.cli.php

    r532 r533  
    3333
    3434require_once dirname(__FILE__) . '/_config.inc.php';
    35 require_once 'codebase/lib/ACL.inc.php';
    36 require_once 'codebase/lib/Auth_SQL.inc.php';
    37 require_once 'codebase/lib/Lock.inc.php';
    38 require_once 'codebase/lib/Prefs.inc.php';
    39 require_once 'codebase/lib/Version.inc.php';
     35require_once CODEBASE_PATH . '/lib/ACL.inc.php';
     36require_once CODEBASE_PATH . '/lib/Auth_SQL.inc.php';
     37require_once CODEBASE_PATH . '/lib/Lock.inc.php';
     38require_once CODEBASE_PATH . '/lib/Prefs.inc.php';
     39require_once CODEBASE_PATH . '/lib/Version.inc.php';
    4040
    4141/********************************************************************
     
    5454    exit(1);
    5555}
     56
     57$app->logMsg(sprintf('Running initDB on %s codebase tables in db %s', $class, $db->getParam('db_name')), LOG_INFO, __FILE__, __LINE__);
    5658
    5759if ('all' == $class) {
     
    8284function help()
    8385{
    84     global $this_script;
     86    global $cli_executed;
    8587    ?>
    86 This script initializes DB tables managed by Codebase classes.
     88This script initializes DB tables managed by Codebase classes. If database schema is changed a log message will display.
    8789
    88 Usage: <?php echo $this_script; ?> [OPTIONS] CLASSNAME
     90Usage: <?php echo $cli_executed; ?> [OPTIONS] CLASSNAME
    8991
    9092OPTIONS
Note: See TracChangeset for help on using the changeset viewer.