Index: trunk/phase3/maintenance/updaters.inc |
— | — | @@ -77,6 +77,7 @@ |
78 | 78 | array( 'revision', 'rev_parent_id', 'patch-rev_parent_id.sql' ), |
79 | 79 | array( 'page_restrictions', 'pr_id', 'patch-page_restrictions_sortkey.sql' ), |
80 | 80 | array( 'ipblocks', 'ipb_block_email', 'patch-ipb_emailban.sql' ), |
| 81 | + array( 'oldimage', 'oi_metadata', 'patch-oi_metadata.sql'), |
81 | 82 | ); |
82 | 83 | |
83 | 84 | function rename_table( $from, $to, $patch ) { |
— | — | @@ -1242,6 +1243,11 @@ |
1243 | 1244 | array("logging", "log_params", "TEXT"), |
1244 | 1245 | array("mwuser", "user_editcount", "INTEGER"), |
1245 | 1246 | array("mwuser", "user_newpass_time", "TIMESTAMPTZ"), |
| 1247 | + array("oldimage", "oi_metadata", "BYTEA NOT NULL"), |
| 1248 | + array("oldimage", "oi_media_type", "TEXT NOT NULL"), |
| 1249 | + array("oldimage", "oi_major_mime", "TEXT NOT NULL DEFAULT 'unknown'"), |
| 1250 | + array("oldimage", "oi_minor_mime", "TEXT NOT NULL DEFAULT 'unknown'"), |
| 1251 | + array("oldimage", "oi_deleted", "CHAR NOT NULL DEFAULT '0'"), |
1246 | 1252 | array("page_restrictions", "pr_id", "INTEGER NOT NULL UNIQUE DEFAULT nextval('pr_id_val')"), |
1247 | 1253 | array("recentchanges", "rc_deleted", "INTEGER NOT NULL DEFAULT 0"), |
1248 | 1254 | array("recentchanges", "rc_log_action", "TEXT"), |