sky-uk / cqlmigrate

Cassandra schema migration library
BSD 3-Clause "New" or "Revised" License
47 stars 29 forks source link

Dh preflight checks #101

Closed SteveWink closed 3 years ago

SteveWink commented 3 years ago

This pull request is to provide functionality to check whether a cql migrate should be carried out or not, before taking up resources such as locks. It checks that the keyspace exists. If not it will migrate. It checks that the table exists. If not it will migrate. It checks whether the files specified have the same checksum as the files already in the database with the same names. If any of the files are missing it will migrate.

If a row exists for a file but it has a different checksum an exception will be thrown, as before but with a clearer message.

Fixes #96

davidh87 commented 3 years ago

@jonathanpeircesky @fincefid As people that previously expressed interest; does this look like it addresses #96 enough from your POVs?

fincefid commented 3 years ago

@jonathanpeircesky @fincefid As people that previously expressed interest; does this look like it addresses #96 enough from your POVs?

@davidh87 We're happy with the feature/implementation