>> Platonides <platoni...@gmail.com> wrote: > On 10/10/12 09:02, Marcin Cieslak wrote: >> Hello, >> >> I updated one of my wikis today from f2138b1 to >> 9299bab032a85c1a421436da04a595b79f2b9d6c (git master as I write this) and >> after running update.php >> I get this: >> >> A database error has occurred. Did you forget to run maintenance/update.php >> after upgrading? See: >> https://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script >> Query: SELECT >> page_id,page_len,page_is_redirect,page_latest,page_content_model FROM "page" >> WHERE page_namespace = '0' AND page_title = 'Test11' LIMIT 1 >> Function: LinkCache::addLinkObj >> Error: 42703 ERROR: column "page_content_model" does not exist >> LINE 1: ...*/ page_id,page_len,page_is_redirect,page_latest,page_conte... >> ^ > (...) >> Look like LinkCache. >> >> Can this be quickly fixed or do we need to revert this? >> >> //Saper > > Seems the files of maintenance/archives/patch-*content* could need to be > copied to maintenance/postgres/archives > > It works for me on mysql, but it is inconsistent in that the db is still > used a varbinary but the description uses an integer.
Yes, the updater needs to be fixed (it is normally enough to update "includes/installer/DatabaseUpdater.php" for smaller changes). I remember mentioning it in code review somewhere, finding the "right" data type was an issue to be addressed by developers... //Saper _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l