?i»?
Current Path : /home/s/c/g/scgforma/www/cloud/core/doc/admin/configuration_database/ |
Current File : /home/s/c/g/scgforma/www/cloud/core/doc/admin/configuration_database/bigint_identifiers.html |
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>BigInt (64bit) identifiers — Nextcloud 13 Administration Manual 13 documentation</title> <link rel="stylesheet" href="../_static/" type="text/css" /> <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> <link rel="stylesheet" href="../_static/main.min.css" type="text/css" /> <link rel="stylesheet" href="../_static/styles.css" type="text/css" /> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT: '../', VERSION: '13', COLLAPSE_INDEX: false, FILE_SUFFIX: '.html', HAS_SOURCE: true }; </script> <script type="text/javascript" src="../_static/jquery.js"></script> <script type="text/javascript" src="../_static/underscore.js"></script> <script type="text/javascript" src="../_static/doctools.js"></script> <script type="text/javascript" src="../_static/js/jquery-1.11.0.min.js"></script> <script type="text/javascript" src="../_static/js/jquery-fix.js"></script> <script type="text/javascript" src="../_static/bootstrap-3.1.0/js/bootstrap.min.js"></script> <script type="text/javascript" src="../_static/bootstrap-sphinx.js"></script> <link rel="top" title="Nextcloud 13 Administration Manual 13 documentation" href="../contents.html" /> <link rel="up" title="Database configuration" href="index.html" /> <link rel="next" title="Mimetypes management" href="../configuration_mimetypes/index.html" /> <link rel="prev" title="Enabling MySQL 4-byte support" href="mysql_4byte_support.html" /> <meta charset='utf-8'> <meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'> <meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1'> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="theme-color" content="#1d2d44"> </head> <body role="document"> <div class="wrap container not-front"> <div class="content row"> <main class="main"> <div class="row"> <div class="col-md-3"> <div class="sidebar"> <h1>Nextcloud 13 Administration Manual</h1> <div class="sidebar-search"> <form class="headersearch" action="../search.html" method="get"> <input type="text" value="" name="q" id="q" class="form-control" /> <button class="btn btn-default" type="submit" id="searchsubmit">Search</button> </form> </div> <div class="menu-support-container"> <ul id="menu-support" class="menu"> <ul> <li><a href="../contents.html">Table of Contents</a></li> </ul> <ul class="current"> <li class="toctree-l1"><a class="reference internal" href="../index.html">Introduction</a></li> <li class="toctree-l1"><a class="reference internal" href="../release_notes.html">Release notes</a></li> <li class="toctree-l1"><a class="reference internal" href="../installation/index.html">Installation</a></li> <li class="toctree-l1"><a class="reference internal" href="../configuration_server/index.html">Server configuration</a></li> <li class="toctree-l1"><a class="reference internal" href="../configuration_user/index.html">User management</a></li> <li class="toctree-l1"><a class="reference internal" href="../configuration_files/index.html">File sharing and management</a></li> <li class="toctree-l1"><a class="reference internal" href="../file_workflows/index.html">File workflows</a></li> <li class="toctree-l1 current"><a class="reference internal" href="index.html">Database configuration</a><ul class="current"> <li class="toctree-l2"><a class="reference internal" href="db_conversion.html">Converting database type</a></li> <li class="toctree-l2"><a class="reference internal" href="linux_database_configuration.html">Database configuration</a></li> <li class="toctree-l2"><a class="reference internal" href="mysql_4byte_support.html">Enabling MySQL 4-byte support</a></li> <li class="toctree-l2 current"><a class="current reference internal" href="">BigInt (64bit) identifiers</a></li> </ul> </li> <li class="toctree-l1"><a class="reference internal" href="../configuration_mimetypes/index.html">Mimetypes management</a></li> <li class="toctree-l1"><a class="reference internal" href="../maintenance/index.html">Maintenance</a></li> <li class="toctree-l1"><a class="reference internal" href="../issues/index.html">Issues and troubleshooting</a></li> </ul> </ul> </div> </div> </div> <div class="col-md-9"> <div class="page-content"> <ul class="prevnext-title list-unstyled list-inline"> <li class="prev"> <a href="mysql_4byte_support.html" title="Previous Chapter: Enabling MySQL 4-byte support"><span class="glyphicon glyphicon-chevron-left visible-sm"></span><span class="hidden-sm">« Enabling MySQL 4-byte support</span> </a> </li> <li class="next"> <a href="../configuration_mimetypes/index.html" title="Next Chapter: Mimetypes management"><span class="glyphicon glyphicon-chevron-right visible-sm"></span><span class="hidden-sm">Mimetypes management »</span> </a> </li> </ul> <div class="section" id="bigint-64bit-identifiers"> <h1>BigInt (64bit) identifiers<a class="headerlink" href="#bigint-64bit-identifiers" title="Permalink to this headline">¶</a></h1> <p>Since Nextcloud 13 big integers are used to store identifiers and auto-increment keys in the database. Because changing columns on huge tables can take quite a while (up to hours or days), the update from Nextcloud 12 or earlier did not perform this migration on the filecache and activity table.</p> <p>To make it easy to force the update on those tables too, we’ve added a console command, which can be used to migrate the remaining columns to bigints.</p> <p>The command can safely be executed. It will show a success message when there is nothing to do:</p> <div class="highlight-python"><div class="highlight"><pre>sudo -u www-data ./occ db:convert-filecache-bigint All tables already up to date! </pre></div> </div> <p>or otherwise ask for confirmation, before performing the heavy actions:</p> <div class="highlight-python"><div class="highlight"><pre>sudo -u www-data ./occ db:convert-filecache-bigint This can take up to hours, depending on the number of files in your instance! Continue with the conversion (y/n)? [n] </pre></div> </div> <div class="admonition note"> <p class="first admonition-title">Note</p> <p class="last">Similar to a normal update, you should shutdown your apache or nginx server or enable maintenance mode before running the command to avoid issues with your sync clients.</p> </div> </div> <ul class="prevnext-title list-unstyled list-inline"> <li class="prev"> <a href="mysql_4byte_support.html" title="Previous Chapter: Enabling MySQL 4-byte support"><span class="glyphicon glyphicon-chevron-left visible-sm"></span><span class="hidden-sm">« Enabling MySQL 4-byte support</span> </a> </li> <li class="next"> <a href="../configuration_mimetypes/index.html" title="Next Chapter: Mimetypes management"><span class="glyphicon glyphicon-chevron-right visible-sm"></span><span class="hidden-sm">Mimetypes management »</span> </a> </li> </ul> </div> </div> </div> </main> </div> </div> </body> </html>