Is there a way to simply check if the current schema file matches the DB
I want to perform a check to the effect of "is my
schema.ts
file exactly the same as what is in my connectionString
".
What is the best way to do this (via CLI preferably)3 Replies
@boba.holic i did this and come up with this script, but this is annoying
i feel like there ought to be a cli command to do all this
@boba.holic moreover, this doesn't detect changes that are breaking, like column renames. i figured
check:pg
would help out, but seems to not be the caseOne thing about introspect, is it will dump the entire scheme in one file right? But if you have your schema broken up into different files , you have to manually cross reference?