Quantcast
Channel: User Schwern - Stack Overflow
Viewing all articles
Browse latest Browse all 581

Comment by Schwern on SQLchemy: caught in a loop between constraint relationship class already existing when trying to create it, but not existing when I try and drop it

$
0
0
@Lord_Verulam Yes, constraint names are global, and databases are a shared resource. To avoid this in such a situation like testing where you're making and destroying a lot of things, append a little bit of randomness to table names, and prefix constraints with the table name.

Viewing all articles
Browse latest Browse all 581

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>