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

Diff and patch for schemas? #6

Open
6 tasks
krlmlr opened this issue Sep 3, 2018 · 0 comments
Open
6 tasks

Diff and patch for schemas? #6

krlmlr opened this issue Sep 3, 2018 · 0 comments

Comments

@krlmlr
Copy link
Collaborator

krlmlr commented Sep 3, 2018

When the schema evolves, how do I apply the update to an existing database?

Use case: I have a script that creates the database from scratch, I've used it to create an instance and I have added data to that instance. Now the schema needs an update. Can I update the schema and keep the existing data in the database, and still have a comprehensive definition of the schema using the sqlr DSL?

Might be easier to achieve with #5.

Important cases:

  • New column
  • Renamed column
  • New table
  • Removed column (with warning)

Other cases:

  • Splitting a table
  • Changing semantics of a column (with a migration rule)
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