-
Notifications
You must be signed in to change notification settings - Fork 1k
Auto-migrate: Allow adding new variants at the tail #2874
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
Merged
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
a5ae5d1
auto_migrate: allow old_sum == prefix(new_sum)
Centril 7042601
move required_var_len_granules_for_row & bsatn_len to use site
Centril 8123796
move Size to layout
Centril 2318994
move MemoryUsage to sats
Centril 0afe143
break layout's dependency on VarLenRef
Centril 559da2e
move layout to sats
Centril 82fbb71
move PrimitiveType to layout
Centril 797efb6
auto_migrate: check layout size & alig for SumType changes
Centril e23afdf
implement row type alteration in datastore
Centril 33579c6
cargo fmt
Centril c5058e6
datastore: add alter_row_type tests
Centril c1c39f1
cargo fmt
Centril 4fdcd9c
alter_table_row_type: fix typo
Centril 5f3cd46
add spacetimedb_data_structures as dep of spacetimedb_bindings
Centril f6413d8
extend successful_auto_migration, testing for altering row type
Centril 96d3f9f
cargo insta review of spacetimedb-codegen
Centril afac310
amend auto_migration smoketest to test changing a sum type
Centril 4681e8a
cargo fmt
Centril c3e55c0
auto_migration smoketest: append to the right code
Centril 1e7791d
split change_columns_to into safe and unsafe version
Centril ebf0345
alter_table_row_type: set ColumnSchema::table_id's
Centril caabd49
Any: use BitOr for semigroup op instead of Add
Centril cba8e08
rollback_pending_schema_change: add back accidentally deleted comment…
Centril 4572b1a
clarify safety commentary on change_columns_to_unchecked call
Centril fa3647a
TableAlterRowType: add doc comment re. non-repr changes
Centril c06a0df
alter_table_row_type: add missed ending backtick
Centril 4f689ee
alter_table_row_type: add note on compatible changes
Centril 47a188f
ensure_old_ty_upgradable_to_new: don't allow field/variant name changes
Centril File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.