During development a lot of classes were placed in MediaWiki\Storage\. The precedent set would mean that every class relating to something stored in a database table, plus all related value classes and such, would go into that namespace. Let's put them into MediaWiki\Revision\ instead. Then future classes related to the 'page' table can go into MediaWiki\Page\, future classes related to the 'user' table can go into MediaWiki\User\, and so on. Note I didn't move DerivedPageDataUpdater, PageUpdateException, PageUpdater, or RevisionSlotsUpdate in this patch. If these are kept long-term, they probably belong in MediaWiki\Page\ or MediaWiki\Edit\ instead. Bug: T204158 Change-Id: I16bea8927566a3c73c07e4f4afb3537e05aa04a5
15 lines
525 B
SQL
15 lines
525 B
SQL
DROP TABLE /*_*/revision;
|
|
|
|
CREATE TABLE /*_*/revision (
|
|
rev_id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
|
rev_page INTEGER NOT NULL,
|
|
rev_comment BLOB NOT NULL,
|
|
rev_user INTEGER NOT NULL default 0,
|
|
rev_user_text varchar(255) NOT NULL default '',
|
|
rev_timestamp blob(14) NOT NULL default '',
|
|
rev_minor_edit INTEGER NOT NULL default 0,
|
|
rev_deleted INTEGER NOT NULL default 0,
|
|
rev_len INTEGER unsigned,
|
|
rev_parent_id INTEGER default NULL,
|
|
rev_sha1 varbinary(32) NOT NULL default ''
|
|
) /*$wgDBTableOptions*/;
|