Login   Register  
PHP Classes
elePHPant
Icontem

File: update.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 3 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>";