JetBrains / Exposed

Kotlin SQL Framework
http://jetbrains.github.io/Exposed/
Apache License 2.0
8.25k stars 689 forks source link

API to compare actual schema with code-generated schema #377

Open jonnyzzz opened 6 years ago

jonnyzzz commented 6 years ago

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

AncutaIoan commented 1 year ago

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

joc-a commented 1 year ago

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