title: Django 'migration is applied before its dependency' when running any migration commands
body: <p>I am using Django 3.0.2 that is connected to a local MySQL database.My project current has 2 apps, '<em>accounts</em>' and '<em>home</em>'.</p>
  
  <p>I dropped all the tables in my database after updating some of my model fields and I removed all the files in the migrations folder except <code>__init__.py</code>. Trying to start the dev server shows an error: <code>Dependency on app with no migrations: accounts</code>, so I ran <code>python manage.py makemigrations</code> which returned this</p>
  
  <pre><code>Migrations for 'accounts':
    accounts\migrations\0001_initial.py
      - Create model User
  Migrations for 'home':
    home\migrations\0001_initial.py
      - Create model Idea
      - Create model Reply
  </code></pre>
  
  <p>After this, running the server gives a warning saying </p>
  
  <blockquote>
    <p>You have 1 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): accounts.
    Run 'python manage.py migrate' to apply them.</p>
  </blockquote>
  
  <p>Doing so gives me an <code>InconsistentMigrationHistory</code> exception:
  <code>Migration admin.0001_initial is applied before its dependency accounts.0001_initial on database 'default'</code></p>
  
  <hr>
  
  <p>Running <code>python manage.py showmigrations</code> returns this:</p>
  
  <pre><code>accounts
   [ ] 0001_initial
  admin
   [X] 0001_initial
   [X] 0002_logentry_remove_auto_add
   [X] 0003_logentry_add_action_flag_choices
  auth
   [X] 0001_initial
   [X] 0002_alter_permission_name_max_length
   [X] 0003_alter_user_email_max_length
   [X] 0004_alter_user_username_opts
   [X] 0005_alter_user_last_login_null
   [X] 0006_require_contenttypes_0002
   [X] 0007_alter_validators_add_error_messages
   [X] 0008_alter_user_username_max_length
   [X] 0009_alter_user_last_name_max_length
   [X] 0010_alter_group_name_max_length
   [X] 0011_update_proxy_permissions
  contenttypes
   [X] 0001_initial
   [X] 0002_remove_content_type_name
  home
   [X] 0001_initial
  sessions
   [X] 0001_initial
  </code></pre>
  
  <hr>
  
  <p>I've tried runing the commands in different orders but it eventually comes to the same result. I can provide more details about the app if needed.</p>