r94004 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94003‎ | r94004 | r94005 >
Date:08:16, 6 August 2011
Author:catrope
Status:deferred
Tags:
Comment:
RL2: Schema changes: rename gd_global to gd_shared, and add gd_timestamp
Modified paths:
  • /branches/RL2/extensions/Gadgets/sql/gadgets.sql (modified) (history)

Diff [purge]

Index: branches/RL2/extensions/Gadgets/sql/gadgets.sql
@@ -3,10 +3,13 @@
44 CREATE TABLE /*_*/gadgets (
55 -- Name of gadget. Cannot be changed, ever.
66 gd_name varchar(255) binary NOT NULL PRIMARY KEY,
7 - -- JSON blob with gadget properties. See (TODO: fill this) for documentation on the format
 7+ -- JSON blob with gadget properties. See Gadget::__construct() for documentation on the format
88 gd_blob mediumblob NOT NULL,
9 - -- Whether or not this gadget is global (called 'shared' in the interface)
10 - gd_global bool NOT NULL
 9+ -- Whether or not this gadget is allowed to be shared through a foreign repository
 10+ gd_shared bool NOT NULL,
 11+ -- The timestamp of when the metadata was last changed. Used for conflict detection and cache invalidation
 12+ gd_timestamp binary(14) NOT NULL
1113 ) /*$wgDBTableOptions*/;
1214
13 -CREATE INDEX /*i*/gd_global_name ON /*_*/gadgets (gd_global, gd_name);
 15+CREATE INDEX /*i*/gd_shared_name ON /*_*/gadgets (gd_shared, gd_name);
 16+CREATE INDEX /*i*/gd_name_timestamp ON /*_*/gadgets (gd_name, gd_timestamp);

Status & tagging log