~quam-plures-core/quam-plures/install_bug_fix

« back to all changes in this revision

Viewing changes to qp_install/_functions_dbupgrade.php

  • Committer: EdB
  • Date: 2013-03-08 17:13:49 UTC
  • mfrom: (7657.1.3 qp5_smallstep)
  • Revision ID: 1912webworks@gmail.com-20130308171349-o4x1e211b3cl4syl
quam-plures-core/quam-plures/qp5_smallstep

Show diffs side-by-side

added added

removed removed

Lines of Context:
497
497
                else debug_die( T_('Upgrader crashed doing step# ').$cur_db_version );
498
498
        }
499
499
 
 
500
        if( $cur_db_version < 16 )
 
501
        {
 
502
                $cur_db_version++;
 
503
                echo 'Adding user_avatar_ID to the users table ... ';
 
504
                if( db_add_col( $app_db_tableprefix."users", "user_avatar_ID", "user_validated", "int(10) NULL" ) !== false )
 
505
                {
 
506
                        set_upgrade_checkpoint( $cur_db_version );
 
507
                }
 
508
                else debug_die( T_('Upgrader crashed doing step# ').$cur_db_version );
 
509
        }
 
510
 
 
511
        if( $cur_db_version < 17 )
 
512
        {
 
513
                $cur_db_version++;
 
514
                echo 'Adding user_biography to the users table ... ';
 
515
                if( db_add_col( $app_db_tableprefix."users", "user_biography", "user_avatar_ID", "TEXT NULL" ) !== false )
 
516
                {
 
517
                        set_upgrade_checkpoint( $cur_db_version );
 
518
                }
 
519
                else debug_die( T_('Upgrader crashed doing step# ').$cur_db_version );
 
520
        }
 
521
 
500
522
// -----------------------------------------------------------------------------------------
501
523
// Remember changing the DB schema, too! Check out these files:
502
524
// - qp_inc/_core/model/__core.install.php