title: How do I restore phabricator if I deleted the files but the database is still intact?
body: <p>So, I did a stupid rm -rf on the folder where the complete phabricator folder was present.</p>
  
  <p>The whole phabricator database is still intact though.</p>
  
  <p>I cloned the required repos on the same old location:</p>
  
  <pre><code>somewhere/ $ git clone https://github.com/phacility/libphutil.git
  somewhere/ $ git clone https://github.com/phacility/arcanist.git
  somewhere/ $ git clone https://github.com/phacility/phabricator.git
  </code></pre>
  
  <p>Apache was already configured during previous install.</p>
  
  <p>I then ran:</p>
  
  <pre><code>./bin/storage upgrade
  </code></pre>
  
  <p>After which I went to the address which pointed to phabricator folder. Now I get the following error:</p>
  
  <blockquote>
    <p>1146: Table 'phabricator_user.user_cache' doesn't exist</p>
  </blockquote>
  
  <p>How do I resolve it? Or in general, what's the best way to reinstall phabricator using the old database?</p>
  
  <p>Thanks</p>