Skip to content

Test the migration with TiDB Serverless branching - #1

Open
shiyuhang0 wants to merge 2 commits into
mainfrom
branch
Open

shiyuhang0 wants to merge 2 commits into
mainfrom
branch

Conversation

@shiyuhang0

Copy link
Copy Markdown
Contributor

In order to test the migration, we added a GitHub action to run the migration in the created branch. The branch copies the data from TiDB serverless, ensuring we find any potential errors in the migration.

In this example, we want to add a unique index in the title field for the articles table. (The seed already loads the same title in TiDB Serverless)

  1. You can see the migration test fails because of the duplicated title name

image

  1. After fixing the data problem, we push an empty commit to trigger the action again, and the migration success.

branching helps us to test the migration and then we can merge this PR and apply the migration to the production cluster.

@tidb-cloud-branching

tidb-cloud-branching Bot commented Oct 7, 2023

Copy link
Copy Markdown

The latest updates on TiDB Serverless Branch. Learn more about branching GitHub integration↗︎

BranchName ClusterID Status Updated
branch_1_a80857f 1379661944646406304 READY 2023-10-07T02:39:02Z

@shiyuhang0 shiyuhang0 closed this Oct 7, 2023
@shiyuhang0 shiyuhang0 reopened this Oct 7, 2023
@shiyuhang0 shiyuhang0 closed this Oct 7, 2023
@shiyuhang0 shiyuhang0 reopened this Oct 7, 2023
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.

1 participant