CINXE.COM
#227 (Check for db version and force upgrade if neccessary) – GlotPress
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><script type="text/javascript" src="/_static/js/bundle-playback.js?v=HxkREWBo" charset="utf-8"></script> <script type="text/javascript" src="/_static/js/wombat.js?v=txqj7nKC" charset="utf-8"></script> <script>window.RufflePlayer=window.RufflePlayer||{};window.RufflePlayer.config={"autoplay":"on","unmuteOverlay":"hidden"};</script> <script type="text/javascript" src="/_static/js/ruffle/ruffle.js"></script> <script type="text/javascript"> __wm.init("https://web.archive.org/web"); __wm.wombat("http://glotpress.trac.wordpress.org/ticket/227","20130119080159","https://web.archive.org/","web","/_static/", "1358582519"); </script> <link rel="stylesheet" type="text/css" href="/_static/css/banner-styles.css?v=S1zqJCYt" /> <link rel="stylesheet" type="text/css" href="/_static/css/iconochive.css?v=3PDvdIFv" /> <!-- End Wayback Rewrite JS Include --> <title> #227 (Check for db version and force upgrade if neccessary) – GlotPress </title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <!--[if IE]><script type="text/javascript"> if (/^#__msie303:/.test(window.location.hash)) window.location.replace(window.location.hash.replace(/^#__msie303:/, '#')); </script><![endif]--> <link rel="search" href="/web/20130119080159/http://glotpress.trac.wordpress.org/search"/> <link rel="prev" href="/web/20130119080159/http://glotpress.trac.wordpress.org/ticket/226" title="Ticket #226"/> <link rel="last" href="/ticket/228" title="Ticket #228"/> <link rel="help" href="/wiki/TracGuide"/> <link rel="alternate" href="/web/20130119080159/http://glotpress.trac.wordpress.org/ticket/227?format=csv" type="text/csv" class="csv" title="Comma-delimited Text"/><link rel="alternate" href="/web/20130119080159/http://glotpress.trac.wordpress.org/ticket/227?format=tab" type="text/tab-separated-values" class="tab" title="Tab-delimited Text"/><link rel="alternate" href="/web/20130119080159/http://glotpress.trac.wordpress.org/ticket/227?format=rss" type="application/rss+xml" class="rss" title="RSS Feed"/> <link rel="next" href="/web/20130119080159/http://glotpress.trac.wordpress.org/ticket/228" title="Ticket #228"/> <link rel="start" href="/wiki"/> <link rel="stylesheet" href="/web/20130119080159cs_/http://glotpress.trac.wordpress.org/chrome/common/css/trac.css" type="text/css"/><link rel="stylesheet" href="/web/20130119080159cs_/http://glotpress.trac.wordpress.org/chrome/common/css/ticket.css" type="text/css"/> <link rel="first" href="/ticket/1" title="Ticket #1"/> <link rel="shortcut icon" href="/web/20130119080159im_/http://glotpress.trac.wordpress.org/chrome/common/trac.ico" type="image/x-icon"/> <link rel="icon" href="/web/20130119080159im_/http://glotpress.trac.wordpress.org/chrome/common/trac.ico" type="image/x-icon"/> <link type="application/opensearchdescription+xml" rel="search" href="/web/20130119080159/http://glotpress.trac.wordpress.org/search/opensearch" title="Search GlotPress"/> <script type="text/javascript"> var auto_preview_timeout=2.0; var form_token="83e82eeb78f5a886aef66c9b"; </script> <script type="text/javascript" src="/web/20130119080159js_/http://glotpress.trac.wordpress.org/chrome/common/js/jquery.js"></script><script type="text/javascript" src="/web/20130119080159js_/http://glotpress.trac.wordpress.org/chrome/common/js/babel.js"></script><script type="text/javascript" src="/web/20130119080159js_/http://glotpress.trac.wordpress.org/chrome/common/js/trac.js"></script><script type="text/javascript" src="/web/20130119080159js_/http://glotpress.trac.wordpress.org/chrome/common/js/search.js"></script><script type="text/javascript" src="/web/20130119080159js_/http://glotpress.trac.wordpress.org/chrome/common/js/folding.js"></script><script type="text/javascript" src="/web/20130119080159js_/http://glotpress.trac.wordpress.org/chrome/common/js/wikitoolbar.js"></script><script type="text/javascript" src="/web/20130119080159js_/http://glotpress.trac.wordpress.org/chrome/common/js/resizer.js"></script><script type="text/javascript" src="/web/20130119080159js_/http://glotpress.trac.wordpress.org/chrome/common/js/auto_preview.js"></script> <!--[if lt IE 7]> <script type="text/javascript" src="/chrome/common/js/ie_pre7_hacks.js"></script> <![endif]--> <script type="text/javascript"> jQuery(document).ready(function($) { $("div.description").find("h1,h2,h3,h4,h5,h6").addAnchor(_("Link to this section")); $(".foldable").enableFolding(false, true); var args = {realm: "ticket", id: 227, escape_newlines: 1} $("#comment").autoPreview("/wiki_render", args, function(textarea, text, rendered) { $("#ticketchange div.comment").html(rendered); if (rendered) $("#ticketchange").show(); else if ($("#ticketchange ul.changes").length == 0) $("#ticketchange").hide(); }); $("#trac-comment-editor textarea").autoPreview("/wiki_render", args, function(textarea, text, rendered) { var comment = $("#trac-comment-editor").next("div.comment"); comment.html(rendered); if (rendered) comment.show(); else comment.hide(); }); $("#modify").parent().toggleClass("collapsed"); $(".trac-topnav a").click(function() { $("#modify").parent().removeClass("collapsed"); }); /* only enable control elements for the currently selected action */ var actions = $("#action input[name='action']"); function updateActionFields() { actions.each(function () { $(this).siblings().find("*[id]").enable($(this).checked()); $(this).siblings().filter("*[id]").enable($(this).checked()); }); } actions.click(updateActionFields); updateActionFields(); }); </script> <script src="//web.archive.org/web/20130119080159js_/http://openatd.svn.wordpress.org/atd-jquery/scripts/jquery.atd.textarea.js"></script> <script src="//web.archive.org/web/20130119080159js_/http://openatd.svn.wordpress.org/atd-jquery/scripts/csshttprequest.js"></script> <link rel="stylesheet" type="text/css" media="screen" href="//web.archive.org/web/20130119080159cs_/http://openatd.svn.wordpress.org/atd-jquery/css/atd.css"/> <style type="text/css"> #content.ticket { margin-left: 20px; } #altlinks { width: 58em; margin-left: 20px; } span.avatar img { float: left; margin: 0 8px 0 -4px } img.avatar { float: left; margin: 0 6px 0 -30px } .wp-notice, .wp-caution { padding: 0 1.2em; margin: 1em 0 } .wp-notice { background: #eff6f9; border: 2px solid #21759b } .wp-caution { border: 2px solid #999; background: #ffb; } .wp-notice li, .wp-caution li { margin-bottom: 0.5em } .wikitoolbar { width: 258px } .AtD_proofread_button, .AtD_edit_button { float: left; width: 22px; height: 16px; border: 1px solid #fff; border-left-color: #d7d7d7; background-repeat: no-repeat; background-position: center center } .AtD_proofread_button:hover, .AtD_edit_button:hover { border-color: #fb2; } .tickets tbody td.summary, .reports tbody td.summary { white-space: normal; } #ticket table.properties :link, #ticket table.properties :visited { color: #000 } #ticket table.properties td, #ticket table.properties th { font-size: 81%; line-height: 1.4 } td[headers=h_keywords] a { margin-right: 10px; white-space: nowrap } dl.attachments dt { padding-bottom: 4px } #attachments dd { margin-left: 10px } #properties .fullrow input { width: 97.5%; } #properties .col1 input { width: 87.5%; } #properties .col2 input { width: 92.5%; } :link, :visited, dt em, .milestone .info h2 em, #content.build h2.config :link, #content.build h2.config :visited { color: #21759b; } </style> <link rel="stylesheet" href="/web/20130119080159cs_/http://glotpress.trac.wordpress.org/chrome/site/keywords.css"/> </head> <body> <div id="siteheader"> </div> <div id="banner"> <div id="header"> <a id="logo" href="https://web.archive.org/web/20130119080159/http://glotpress.trac.wordpress.org/"><img src="https://web.archive.org/web/20130119080159im_/http://wordpress.org/images/glotpress-logo.png" alt="GlotPress" height="76"/></a> </div> <form id="search" action="/web/20130119080159/http://glotpress.trac.wordpress.org/search" method="get"> <div> <label for="proj-search">Search:</label> <input type="text" id="proj-search" name="q" size="18" value=""/> <input type="submit" value="Search"/> </div> </form> <div id="metanav" class="nav"> <ul> <li class="first"><a href="/web/20130119080159/http://glotpress.trac.wordpress.org/login">Login</a></li><li><a href="/web/20130119080159/http://glotpress.trac.wordpress.org/prefs">Preferences</a></li><li><a href="/web/20130119080159/http://glotpress.trac.wordpress.org/wiki/TracGuide">Help/Guide</a></li><li class="last"><a href="/web/20130119080159/http://glotpress.trac.wordpress.org/about">About Trac</a></li> </ul> </div> </div> <div id="mainnav" class="nav"> <ul> <li class="first"><a href="/web/20130119080159/http://glotpress.trac.wordpress.org/wiki">Wiki</a></li><li><a href="/web/20130119080159/http://glotpress.trac.wordpress.org/timeline">Timeline</a></li><li><a href="/web/20130119080159/http://glotpress.trac.wordpress.org/roadmap">Roadmap</a></li><li><a href="/web/20130119080159/http://glotpress.trac.wordpress.org/browser">Browse Source</a></li><li class="active"><a href="/web/20130119080159/http://glotpress.trac.wordpress.org/report">View Tickets</a></li><li class="last"><a href="/web/20130119080159/http://glotpress.trac.wordpress.org/search">Search</a></li> </ul> </div> <div id="main"> <div id="ctxtnav" class="nav"> <h2>Context Navigation</h2> <ul> <li class="first"><span>← <a class="prev" href="/web/20130119080159/http://glotpress.trac.wordpress.org/ticket/226" title="Ticket #226">Previous Ticket</a></span></li><li class="last"><span><a class="next" href="/web/20130119080159/http://glotpress.trac.wordpress.org/ticket/228" title="Ticket #228">Next Ticket</a> →</span></li> </ul> <hr/> </div> <div id="content" class="ticket"> <h1 id="trac-ticket-title"> <a href="/web/20130119080159/http://glotpress.trac.wordpress.org/ticket/227">Ticket #227</a> <span class="status">(new enhancement)</span> </h1> <div id="ticket"> <div class="date"> <p>Opened <a class="timeline" href="/web/20130119080159/http://glotpress.trac.wordpress.org/timeline?from=2012-11-10T13%3A51%3A16Z&precision=second" title="2012-11-10T13:51:16Z in Timeline">2 months</a> ago</p> </div> <h2 class="summary searchable">Check for db version and force upgrade if neccessary</h2> <table class="properties"> <tr> <th id="h_reporter">Reported by:</th> <td headers="h_reporter" class="searchable"> <a href="https://web.archive.org/web/20130119080159/http://profiles.wordpress.org/dimadin"> <img class="avatar" src="//web.archive.org/web/20130119080159im_/http://wordpress.org/grav-redirect.php?user=dimadin" height="24" width="24"/> </a> <a href="/web/20130119080159/http://glotpress.trac.wordpress.org/query?status=!closed&reporter=dimadin">dimadin</a> </td> <th id="h_owner">Owned by:</th> <td headers="h_owner"> </td> </tr> <tr> <th id="h_priority"> Priority: </th> <td headers="h_priority"> <a href="/web/20130119080159/http://glotpress.trac.wordpress.org/query?status=!closed&priority=normal">normal</a> </td> <th id="h_milestone"> Milestone: </th> <td headers="h_milestone"> <a class="missing milestone"></a> </td> </tr><tr> <th id="h_component"> Component: </th> <td headers="h_component"> <a href="/web/20130119080159/http://glotpress.trac.wordpress.org/query?status=!closed&component=general">general</a> </td> <th id="h_version"> Version: </th> <td headers="h_version"> <a href="/web/20130119080159/http://glotpress.trac.wordpress.org/query?status=!closed&version="></a> </td> </tr><tr> <th id="h_keywords"> Keywords: </th> <td headers="h_keywords" class="searchable"> </td> <th id="h_cc"> Cc: </th> <td headers="h_cc" class="searchable"> </td> </tr> </table> <div class="description"> <h3 id="comment:description"> Description </h3> <div class="searchable"> <p> Currently, the only way to do a database upgrade is if user opens install.php. This means that if some change is implemented in database structure, it won't be applied to existing installation that checkouts from SVN, for example.<br/> </p> <p> GP should compare db versions and force upgrade if installed version is older.<br/> </p> </div> </div> </div> <div id="help"><strong>Note:</strong> See <a href="/web/20130119080159/http://glotpress.trac.wordpress.org/wiki/TracTickets">TracTickets</a> for help on using tickets.</div> </div> <div id="altlinks"> <h3>Download in other formats:</h3> <ul> <li class="first"> <a rel="nofollow" href="/web/20130119080159/http://glotpress.trac.wordpress.org/ticket/227?format=csv" class="csv">Comma-delimited Text</a> </li><li> <a rel="nofollow" href="/web/20130119080159/http://glotpress.trac.wordpress.org/ticket/227?format=tab" class="tab">Tab-delimited Text</a> </li><li class="last"> <a rel="nofollow" href="/web/20130119080159/http://glotpress.trac.wordpress.org/ticket/227?format=rss" class="rss">RSS Feed</a> </li> </ul> </div> </div> <div id="footer" lang="en" xml:lang="en"><hr/> <a id="tracpowered" href="https://web.archive.org/web/20130119080159/http://trac.edgewall.org/"><img src="/web/20130119080159im_/http://glotpress.trac.wordpress.org/chrome/common/trac_logo_mini.png" height="30" width="107" alt="Trac Powered"/></a> <p class="left">Powered by <a href="/web/20130119080159/http://glotpress.trac.wordpress.org/about"><strong>Trac 0.12.4</strong></a><br/> By <a href="https://web.archive.org/web/20130119080159/http://www.edgewall.org/">Edgewall Software</a>.</p> <p class="right">A <a href="https://web.archive.org/web/20130119080159/http://wordpress.org/">WordPress</a> Project</p> </div> <div id="sitefooter"> </div> <script> jQuery(function($) { $('textarea').addProofreader(); $(document).ready(function(){ $('.AtD_proofread_button').each(function() { $(this).parent().appendTo( $(this).parents('fieldset').find('.wikitoolbar') ); }); $("#modify").parent().removeClass('collapsed'); if ( $('#wp-security-notice').length ) { $('#field-component').change( function() { $('#wp-security-notice').toggle( 'Security' === $(this).val() ); }); } }); }); </script> <script> wpKeywordsHide = [ 'commit', 'early', 'i18n-change' ]; </script> <script src="/web/20130119080159js_/http://glotpress.trac.wordpress.org/chrome/site/keywords.js"></script> </body> </html><!-- FILE ARCHIVED ON 08:01:59 Jan 19, 2013 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 07:42:24 Nov 26, 2024. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). --> <!-- playback timings (ms): captures_list: 0.871 exclusion.robots: 0.364 exclusion.robots.policy: 0.017 esindex: 0.01 cdx.remote: 62.341 LoadShardBlock: 329.607 (3) PetaboxLoader3.datanode: 166.498 (4) PetaboxLoader3.resolve: 321.146 (3) load_resource: 210.859 -->