title: How to create Indexes on Mysql test tables for Django Unittest
body: <p>I am trying to create UnitTests for api which has django raw query. This raw query uses Force indexes.
  While running test I am getting following error:</p>
  
  <pre><code>  File "/home/vagrant/.envs/django/local/lib/python2.7/site-packages/django/db/backends/mysql/base.py", line 114, in exe
  cute
      return self.cursor.execute(query, args)
    File "/home/vagrant/.envs/django/local/lib/python2.7/site-packages/MySQLdb/cursors.py", line 205, in execute
      self.errorhandler(self, exc, value)
    File "/home/vagrant/.envs/django/local/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorha
  ndler
      raise errorclass, errorvalue
  DatabaseError: (1176, "Key 'dBegDate_index' doesn't exist in table 't'")
  </code></pre>
  
  <p>here <code>t</code> is alias for my table.</p>
  
  <p>Note: default database has all indexes. and This business logic API is working correct on default database.</p>
  
  <p>So does that mean, For test database indexes are not setting? If not then how can i create indexes for test database in setUp()</p>