Forgot to update table sql per bug 10280
[lhc/web/wiklou.git] / maintenance / purgeOldText.php
1 <?php
2
3 /**
4 * Purge old text records from the database
5 *
6 * @addtogroup Maintenance
7 * @author Rob Church <robchur@gmail.com>
8 */
9
10 $options = array( 'purge', 'help' );
11 require_once( 'commandLine.inc' );
12 require_once( 'purgeOldText.inc' );
13
14 echo( "Purge Old Text\n\n" );
15
16 if( @$options['help'] ) {
17 ShowUsage();
18 } else {
19 PurgeRedundantText( @$options['purge'] );
20 }
21
22 function ShowUsage() {
23 echo( "Prunes unused text records from the database.\n\n" );
24 echo( "Usage: php purgeOldText.php [--purge]\n\n" );
25 echo( "purge : Performs the deletion\n" );
26 echo( " help : Show this usage information\n" );
27 }
28
29 ?>