PHP Classes

File: update.php

Recommend this page to a friend!
  Classes of Przemek Berezowski   DB Version Manager   update.php   Download  
File: update.php
Role: Example script
Content type: text/plain
Description: Updates current profile database
Class: DB Version Manager
Update database schema with commands read in files
Author: By
Last change:
Date: 13 years ago
Size: 335 bytes
 

Contents

Class file image Download
<?php
/**
 * File for handling database updating
 */
require('profile.php');
require(
'lib/config_manager.php');
require(
'lib/db_updater.php');

$oConf = new ConfigManager(CURRENT_PROFILE);
$oDbUpdater = new DbUpdater($oConf);
$oDbUpdater->updateDb();

echo
"<pre>";
echo
implode('<hr />', $oDbUpdater->updateMessage);
echo
"<pre>";