Index: trunk/phase3/maintenance/sqlite/archives/patch-tc-timestamp.sql |
— | — | @@ -0,0 +1,4 @@ |
| 2 | +ALTER TABLE /*_*/transcache MODIFY tc_time varchar(14); |
| 3 | +UPDATE /*_*/transcache SET tc_time = DATE_FORMAT(FROM_UNIXTIME(tc_time), "%Y%c%d%H%i%s"); |
| 4 | + |
| 5 | +INSERT INTO /*_*/updatelog VALUES ('convert transcache field'); |
Property changes on: trunk/phase3/maintenance/sqlite/archives/patch-tc-timestamp.sql |
___________________________________________________________________ |
Name: svn:eol-style |
1 | 6 | + native |
Index: trunk/phase3/maintenance/updaters.inc |
— | — | @@ -165,6 +165,7 @@ |
166 | 166 | array( 'add_index', 'log_search', 'ls_field_val', 'patch-log_search-rename-index.sql' ), |
167 | 167 | array( 'add_index', 'change_tag', 'change_tag_rc_tag', 'patch-change_tag-indexes.sql' ), |
168 | 168 | array( 'add_field', 'redirect', 'rd_interwiki', 'patch-rd_interwiki.sql' ), |
| 169 | + array( 'do_update_transcache_field' ), |
169 | 170 | // A field changed name mid-release cycle, so fix it for anyone using |
170 | 171 | // trunk |
171 | 172 | array( 'rename_eu_wiki_id' ), |
Index: trunk/phase3/maintenance/tables.sql |
— | — | @@ -1095,7 +1095,7 @@ |
1096 | 1096 | CREATE TABLE /*_*/transcache ( |
1097 | 1097 | tc_url varbinary(255) NOT NULL, |
1098 | 1098 | tc_contents text, |
1099 | | - tc_time int NOT NULL |
| 1099 | + tc_time binary(14) NOT NULL |
1100 | 1100 | ) /*$wgDBTableOptions*/; |
1101 | 1101 | |
1102 | 1102 | CREATE UNIQUE INDEX /*i*/tc_url_idx ON /*_*/transcache (tc_url); |