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

Revive old migrations PR #165

Open
wants to merge 22 commits into
base: main
Choose a base branch
from
Open

Revive old migrations PR #165

wants to merge 22 commits into from

Conversation

Hinton
Copy link
Member

@Hinton Hinton commented Aug 1, 2023

Objective

Expand the migration page and break it up into two focusing on the different database engines.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Aug 1, 2023

Deploying contributing-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 188f126
Status:🚫  Build failed.

View logs

@bitwarden-bot
Copy link

bitwarden-bot commented Aug 1, 2023

Logo
Checkmarx One – Scan Summary & Detailsf1489dd3-cd9c-4024-a379-4c19061a6f3e

No New Or Fixed Issues Found

[T-SQL Code Style][code-style-sql] for more details. But the most important aspect is ensuring the
script can be re-run on the database multiple times without producing any errors or data loss.

### Backwards Compatible
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add a section better describing when non backwards compatible migrations needs to be used.

Comment on lines +76 to +79
We now need to write a script that migrates any data from the old location to the new locations.
This script should ideally be written in a way that supports batching, i.e. execute for X number of
rows at a time. This helps avoiding locking the database. When running the scripts against the
server please keep running it until it affects `0 rows`.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to decide if data migrations are destructive or non destructive. I.e. duplicate the data for a while.

@Hinton Hinton changed the base branch from master to update-db-migrations-docs August 10, 2023 11:55
Base automatically changed from update-db-migrations-docs to master September 26, 2023 18:43
Hinton and others added 3 commits October 2, 2023 14:39
…ps/migrations

* 'master' of github.com:bitwarden/contributing-docs: (37 commits)
  chore(deps): update dependency cspell to v7.3.7 (#206)
  [PM-4161] Fix build command on README.md (#207)
  Fixed typo in csharp.md (#180)
  Update our EDD process documentation (#166)
  chore(deps): update actions/checkout action to v4.1.0 (#204)
  chore(deps): lock file maintenance (#205)
  fix(deps): update npm minor to v2.4.3 (#203)
  use dash when running self-hosted dotnet profile (#202)
  chore(deps): update actions/checkout action to v4 (#191)
  chore(deps): lock file maintenance (#201)
  chore(deps): update npm minor (#195)
  fix(deps): update dependency docusaurus-lunr-search to v3 (#200)
  setup_secrets: Pass `-clear` as switch (#194)
  Update KeyConnector docs for ARM Macs (#171)
  Lock file maintenance (#193)
  Update dependency cspell to v7.3.5 (#192)
  Update dependency ubuntu to v22 (#174)
  Update gh minor (#181)
  Feature flag documentation updates and mentions about new local override capabilities (#187)
  Update npm minor (#188)
  ...

# Conflicts:
#	custom-words.txt
#	docs/contributing/database-migrations/edd.mdx
#	docs/contributing/database-migrations/index.md
@Hinton Hinton marked this pull request as ready for review March 1, 2024 14:29
@Hinton Hinton requested a review from a team as a code owner March 1, 2024 14:29
@Hinton Hinton requested a review from joseph-flinn March 1, 2024 14:29
joseph-flinn
joseph-flinn previously approved these changes Mar 11, 2024
Copy link
Contributor

@joseph-flinn joseph-flinn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The content updates look good to me

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.

4 participants