Skip to content

Automatic migrations wants to drop and recreate Foreign Keys created with create_foreign_key #1265

Answered by zzzeek
asyte asked this question in Usage Questions
Discussion options

You must be logged in to vote

your old migration is lacking the "ON DELETE CASCADE" options in your op.create_foreign_key(). That's why it's correctly trying to drop and recreate them. notice the cascades being added.

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
8 replies
@asyte
Comment options

@zzzeek
Comment options

@asyte
Comment options

@zzzeek
Comment options

Answer selected by asyte
@asyte
Comment options

@thomas-brandstaetter
Comment options

@thomas-brandstaetter
Comment options

@zzzeek
Comment options

Comment options

You must be logged in to vote
2 replies
@zzzeek
Comment options

@CaselIT
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants
Converted from issue

This discussion was converted from issue #1264 on June 23, 2023 13:25.