Making WordPress.org

Changeset 2706


Ignore:
Timestamp:
03/08/2016 01:48:04 PM (11 years ago)
Author:
kovshenin
Message:

WordCamp Budgets: Index the date_paid field to reimbursement requests.

Location:
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network/includes/reimbursement-requests-dashboard.php

    r2699 r2706  
    55defined( 'WPINC' ) or die();
    66
    7 const LATEST_DATABASE_VERSION = 1;
     7const LATEST_DATABASE_VERSION = 2;
    88
    99if ( is_network_admin() ) {
     
    154154                        request_id     int( 11 )        unsigned NOT NULL default '0',
    155155                        date_requested int( 11 )        unsigned NOT NULL default '0',
     156                        date_paid      int( 11 )        unsigned NOT NULL default '0',
    156157                        request_title  varchar( 75 )             NOT NULL default '',
    157158                        status         varchar( 30 )             NOT NULL default '',
     
    160161                        amount         numeric( 10, 2 ) unsigned NOT NULL default '0',
    161162
    162                         PRIMARY KEY (blog_id, request_id),
     163                        PRIMARY KEY  (blog_id, request_id),
    163164                        KEY status (status)
    164165                )
     
    223224                'request_id'     => $request_id,
    224225                'date_requested' => strtotime( $request->post_date_gmt ),
     226                'date_paid'      => get_post_meta( $request_id, '_wcbrr_date_paid', true ),
    225227                'request_title'  => $request->post_title,
    226228                'status'         => $request->post_status,
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network/includes/wordcamp-budgets-dashboard.php

    r2701 r2706  
    6161                        <h1>Import/Export</h1>
    6262
    63                         <?php do_action( 'admin_notices' ); ?>
    6463                        <?php settings_errors(); ?>
    6564
Note: See TracChangeset for help on using the changeset viewer.