Skip to content

Refactor updates and add index-related updates#40

Merged
dcbrandao merged 1 commit into
masterfrom
update-updates
Mar 8, 2019
Merged

Refactor updates and add index-related updates#40
dcbrandao merged 1 commit into
masterfrom
update-updates

Conversation

@dcbrandao

Copy link
Copy Markdown
Contributor
  • Separated out the different types of updates that had been jammed into
    one type. ColumnUpdate now AddColumn/DropColumn/AlterColumn, IndexUpdate
    now AddIndex/DropIndex.
  • Switched from assertions to SpannerErrors, made error messages more
    consistent and helpful
  • Implemented DropTable updates
  • Implemented AddIndex and DropIndex updates
  • I tested this in a Python shell and realized that the metadata caching
    was incompatible with migrations (as the metadata changes after a
    migration is run), so I removed that

- Separated out the different types of updates that had been jammed into
one type. ColumnUpdate now AddColumn/DropColumn/AlterColumn, IndexUpdate
now AddIndex/DropIndex.
- Switched from assertions to SpannerErrors, made error messages more
consistent and helpful
- Implemented DropTable updates
- Implemented AddIndex and DropIndex updates
- I tested this in a Python shell and realized that the metadata caching
was incompatible with migrations (as the metadata changes after a
migration is run), so I removed that
@dcbrandao dcbrandao merged commit 0133ac0 into master Mar 8, 2019
@dcbrandao dcbrandao deleted the update-updates branch March 8, 2019 20:54
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

Successfully merging this pull request may close these issues.

2 participants