|
From: Greg M. <bli...@us...> - 2008-06-22 20:04:43
|
Update of /cvsroot/phpwebsite-comm/modules/ads/boost In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25678/boost Modified Files: boost.php dependency.xml install.sql update.php Log Message: No longer save username in advertisers table. DBPager queries now cached. Index: install.sql =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/ads/boost/install.sql,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** install.sql 11 Feb 2007 23:38:23 -0000 1.10 --- install.sql 22 Jun 2008 20:04:15 -0000 1.11 *************** *** 20,24 **** id INT NOT NULL, user_id INT DEFAULT '0' NOT NULL, - username VARCHAR(30) NOT NULL default '', business VARCHAR(100) NOT NULL default '', created INT NOT NULL, --- 20,23 ---- Index: dependency.xml =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/ads/boost/dependency.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** dependency.xml 22 Jun 2008 14:27:43 -0000 1.4 --- dependency.xml 22 Jun 2008 20:04:15 -0000 1.5 *************** *** 4,8 **** <title>core</title> <properName>phpWebSite Core</properName> ! <version>1.5.0</version> <url>http://phpwebsite.appstate.edu/downloads/modules/base/</url> </module> --- 4,8 ---- <title>core</title> <properName>phpWebSite Core</properName> ! <version>1.8.2</version> <url>http://phpwebsite.appstate.edu/downloads/modules/base/</url> </module> Index: boost.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/ads/boost/boost.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** boost.php 28 May 2007 21:21:47 -0000 1.4 --- boost.php 22 Jun 2008 20:04:15 -0000 1.5 *************** *** 24,28 **** $proper_name = 'Ads'; ! $version = '1.1.0'; $register = FALSE; $unregister = FALSE; --- 24,28 ---- $proper_name = 'Ads'; ! $version = '1.2.0'; $register = FALSE; $unregister = FALSE; Index: update.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/ads/boost/update.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** update.php 28 May 2007 21:21:47 -0000 1.1 --- update.php 22 Jun 2008 20:04:15 -0000 1.2 *************** *** 29,32 **** --- 29,45 ---- case version_compare($currentVersion, '1.1.0', '<'): $content[] = '- Updated to new translation functions.'; + + case version_compare($currentVersion, '1.2.0', '<'): + $db = new PHPWS_DB('ads_advertisers'); + PHPWS_Error::logIfError($db->dropTableColumn('username')); + + $files = array('templates/advertiser/list.tpl'); + ads_update_files($files, $content); + + $content[] = '- Drop username column from advertisers table.'; + $content[] = '- Advertisers deleted when associated site user is deleted.'; + $content[] = '- Switched to PHPWS_LIST_TOGGLE_CLASS define for DBPager.'; + $content[] = '- Added empty messages to DBPager.'; + $content[] = '- Corrected a few phrases that were not being translated.'; } *************** *** 34,36 **** --- 47,66 ---- } + function ads_update_files($files, &$content) + { + if (PHPWS_Boost::updateFiles($files, 'ads')) + { + $content[] = '- Updated the following files:'; + } + else + { + $content[] = '- Unable to update the following files:'; + } + + foreach ($files as $file) + { + $content[] = '--- ' . $file; + } + } + ?> \ No newline at end of file |