title: Alembic wronly "Detected removed foreign key"
body: <p>I created an alembic migrate like so:</p>
  <pre><code>def upgrade():
      op.create_table(
          &quot;policies&quot;,
          ...
          sa.Column(
              &quot;org_id&quot;,
              GUID(),
              sa.ForeignKey(&quot;organization_profiles.id&quot;, ondelete=&quot;CASCADE&quot;),
              nullable=False,
          )
      )
  </code></pre>
  <p>When I ran the migrated everything went well. The table was created and a foreign key was added.</p>
  <p>The problem occurs when I try to create another migrate. Alembic is generating the following code:</p>
  <pre><code>def upgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.drop_constraint('policies_org_id_fkey', 'policies', type_='foreignkey')
      # ### end Alembic commands ###
  
  
  def downgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.create_foreign_key('policies_org_id_fkey', 'policies', 'organization_profiles', ['org_id'], ['id'], ondelete='CASCADE')
      # ### end Alembic commands ###
  </code></pre>
  <p>It is obviously wrong because I do have the foreign key in my table. When I describe the table I see this:</p>
  <pre><code>Foreign-key constraints:
      &quot;policies_org_id_fkey&quot; FOREIGN KEY (org_id) REFERENCES organization_profiles(id) ON DELETE CASCADE
  </code></pre>
  <p>How can I prevent Alembic from doing this?</p>