r63009 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r63008‎ | r63009 | r63010 >
Date:15:35, 26 February 2010
Author:jeroendedauw
Status:ok
Tags:
Comment:
Modified paths:
  • /trunk/extensions/Storyboard/api/ApiStoryboardStoriesFeed.php (modified) (history)
  • /trunk/extensions/Storyboard/storyboard.sql (modified) (history)

Diff [purge]

Index: trunk/extensions/Storyboard/storyboard.sql
@@ -10,5 +10,7 @@
1111 story_modified CHAR(14) binary NOT NULL default '',
1212 story_created CHAR(14) binary NOT NULL default '',
1313 story_is_published TINYINT NOT NULL default '0',
14 - story_is_hidden TINYINT NOT NULL default '0'
 14+ story_is_hidden TINYINT NOT NULL default '0',
 15+ INDEX story_is_published (story_is_published),
 16+ INDEX story_modified (story_modified)
1517 ) /*$wgDBTableOptions*/;
\ No newline at end of file
Index: trunk/extensions/Storyboard/api/ApiStoryboardStoriesFeed.php
@@ -56,7 +56,7 @@
5757 'story_is_published' => 1
5858 ) );
5959 $this->addOption( 'LIMIT', $params['limit'] );
60 - $this->addOption( 'ORDER BY', 'story_modified' );
 60+ $this->addOption( 'ORDER BY', 'story_modified DESC' );
6161
6262 $stories = $this->select( __METHOD__ );
6363

Follow-up revisions

RevisionCommit summaryAuthorDate
r63010Storyboard: Fix up r63009: make index declaration SQLite-compatible, and add ...catrope17:03, 26 February 2010

Status & tagging log