Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

Placeholder for supporting migration cases #140

Closed
chuwy opened this issue Mar 15, 2016 · 2 comments
Closed

Placeholder for supporting migration cases #140

chuwy opened this issue Mar 15, 2016 · 2 comments

Comments

@chuwy
Copy link
Contributor

chuwy commented Mar 15, 2016

Here I'm collecting possible Schema-migrations and ways to handle it

  • New property (column) added. Addition. Will be implemented in 0.6.0.
ALTER TABLE ADD COLUMN ...
ALTER TABLE ADD COLUMN customer_id_new string null;
INSERT INTO customer_id_new SELECT from customer_id;
ALTER TABLE DROP COLUMN customer_id;
ALTER TABLE RENAME COLUMN customer_id_new TO customer_id
END TRANSACTION;
@alexanderdean
Copy link
Contributor

How about:

  1. A default is added to a property (Addition)
  2. A minimum and/or maximum value is removed from a numeric (Revision)

@alexanderdean alexanderdean changed the title Placeholder for migrations cases Placeholder for supporting migration cases Apr 7, 2016
@chuwy
Copy link
Contributor Author

chuwy commented Mar 15, 2017

Migrated to snowplow/iglu#241

@chuwy chuwy closed this as completed Mar 15, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants