Exposed icon indicating copy to clipboard operation
Exposed copied to clipboard

API to compare actual schema with code-generated schema

Open jonnyzzz opened this issue 7 years ago • 6 comments

The org.jetbrains.exposed.sql.SchemaUtils#createMissingTablesAndColumns method helps to make sure the schema is correct and to convert it to achieve the goal.

Sometimes it makes sense to have more detailed manual converters for the database. The problem right now is that one cannot check if the converters sequence turned a database to be the same as the current schema.

It looks like the org.jetbrains.exposed.sql.SchemaUtils#createMissingTablesAndColumns method has enough to be turned into such an assertion method, e.g. assertSchemaIsCorrect

jonnyzzz avatar Aug 31 '18 14:08 jonnyzzz

Hi there, is this still an issue? Would it be alright for me to look into it?

AncutaIoan avatar Jun 01 '23 15:06 AncutaIoan

Hi @AncutaIoan. Yes, this issue is still up for grabs, so feel free to go ahead.

joc-a avatar Jun 26 '23 13:06 joc-a