Skip to content

SQLite Migrations: Rebuild tables - #21575

Merged
bricelam merged 1 commit into
dotnet:release/5.0-preview8from
bricelam:rebuild
Jul 16, 2020
Merged

bricelam merged 1 commit into
dotnet:release/5.0-preview8from
bricelam:rebuild

Conversation

@bricelam

@bricelam bricelam commented Jul 9, 2020 •

Copy link
Copy Markdown
Contributor

More tests to come, but I think we can get something merged and iterate on it.

Fixes #329

@bricelam
bricelam requested a review from a team July 9, 2020 23:42
@roji

This comment has been minimized.

@bricelam
bricelam requested a review from a team July 15, 2020 00:26
@bricelam

bricelam commented Jul 15, 2020 •

Copy link
Copy Markdown
Contributor Author

Design meeting notes:

  • We don't need to warn that we're doing a table rebuild because they're so pervasive on SQLite that it would just become noise
    • But we should definitely consider warning if we do this on other providers
  • Verify what happens with self-referencing foreign key constraints
  • We only need to create indexes before the INSERT if they're new
    • Existing UNIQUE indexes already ensure that the data is valid
    • We can create them under their actual name since they won't conflict

@bricelam
bricelam changed the base branch from master to release/5.0-preview8 July 16, 2020 15:11
More tests to come, but I think we can get something merged and iterate on it.

Fixes #329
@bricelam
bricelam merged commit c97657e into dotnet:release/5.0-preview8 Jul 16, 2020
@bricelam
bricelam deleted the rebuild branch July 16, 2020 17:49
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.

Sqlite Migrations: Table rebuilds

4 participants