title: psycopg2.errors.UndefinedColumn: column website.sequence does not exist
body: <p>I got the above error when I restarted the odoo server in docker when a user from our team was making changes to an odoo module. afterwards I was not able to restart odoo.</p>
  <p>when i Use \d website the column sequence don't exist in the table.
  and when il add the column manualy i have another error for another table.</p>
  <pre><code>
    File &quot;/usr/lib/python3/dist-packages/odoo/tools/cache.py&quot;, line 90, in lookup
  
      value = d[key] = self.method(*args, **kwargs)
  
    File &quot;/usr/lib/python3/dist-packages/odoo/addons/website/models/website.py&quot;, line 987, in _get_current_website_id
  
      found_websites = self.search([('domain', 'ilike', _remove_port(domain_name))]).sorted('country_group_ids')
  
    File &quot;/usr/lib/python3/dist-packages/odoo/models.py&quot;, line 1811, in search
  
      return res if count else self.browse(res)
  
    File &quot;/usr/lib/python3/dist-packages/odoo/models.py&quot;, line 5144, in browse
  
      if not ids:
  
    File &quot;/usr/lib/python3/dist-packages/odoo/osv/query.py&quot;, line 215, in __bool__
  
      return bool(self._result)
  
    File &quot;/usr/lib/python3/dist-packages/odoo/tools/func.py&quot;, line 26, in __get__
  
      value = self.fget(obj)
  
    File &quot;/usr/lib/python3/dist-packages/odoo/osv/query.py&quot;, line 208, in _result
  
      self._cr.execute(query_str, params)
  
    File &quot;&lt;decorator-gen-3&gt;&quot;, line 2, in execute
  
      
  
    File &quot;/usr/lib/python3/dist-packages/odoo/sql_db.py&quot;, line 89, in check
  
      return f(self, *args, **kwargs)
  
    File &quot;/usr/lib/python3/dist-packages/odoo/sql_db.py&quot;, line 310, in execute
  
      res = self._obj.execute(query, params)
  
  psycopg2.errors.UndefinedColumn: column website.sequence does not exist
  
  LINE 1: ....&quot;domain&quot;::text ilike '%@%') ORDER BY  &quot;website&quot;....
  </code></pre>