Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn / fail if contents of delta files have changed #45

Open
volcan01010 opened this issue Jul 13, 2018 · 0 comments
Open

Warn / fail if contents of delta files have changed #45

volcan01010 opened this issue Jul 13, 2018 · 0 comments

Comments

@volcan01010
Copy link

I have enjoyed experimenting the PUM this afternoon. It looks very useful. Thank you for creating it.

I tried the following:

  • Create delta_0.0.201807131730.sql that does CREATE TABLE IF NOT EXISTS public.test
  • Apply delta with pum upgrade. Result is success.
  • Modify delta file to add another column to table.
  • pum info reports delta file as pending but applied upgrades for same file as success.
  • pum upgrade applies delta and reports success.
  • Extra column is not added to table (due to IF NOT EXISTS)

I expected pum to report that the checksum for the delta file was different from the one recorded in the metadata and prevent me from applying the upgrade. That is what DBFit does. It is a very useful feature. Would it be possible to implement this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant