Skip to content

Add ability to process vschema migrations during vttestserver startup#5054

Merged
tirsen merged 1 commit intovitessio:masterfrom
kalfonso:kalfonso.190801-vttestserver-alter-vschema
Aug 12, 2019
Merged

Add ability to process vschema migrations during vttestserver startup#5054
tirsen merged 1 commit intovitessio:masterfrom
kalfonso:kalfonso.190801-vttestserver-alter-vschema

Conversation

@kalfonso
Copy link
Copy Markdown
Contributor

@kalfonso kalfonso commented Aug 6, 2019

This allows defining vschema changes during testing using "ALTER VSCHEMA" statements which follows a convention "v[0-9]{3}__\w+" in the specified "schemaDir" while still supporting an initial "vschema.json" file.

The vschema migrations are located in same directory as db migrations to keep same developer experience. The migration is routed to the db or topology based on the content. We're constraining one single vschema migration per file.

Signed-off-by: Karel Alfonso Sague kalfonso@squareup.com

@kalfonso kalfonso requested a review from sougou as a code owner August 6, 2019 00:00
@sougou
Copy link
Copy Markdown
Contributor

sougou commented Aug 6, 2019

Looks like the tests need fixing.

@kalfonso kalfonso force-pushed the kalfonso.190801-vttestserver-alter-vschema branch 2 times, most recently from b0c22a3 to db8b83e Compare August 6, 2019 11:50
@kalfonso kalfonso force-pushed the kalfonso.190801-vttestserver-alter-vschema branch 3 times, most recently from fe5b599 to f612783 Compare August 7, 2019 04:14
Signed-off-by: Karel Alfonso Sague <kalfonso@squareup.com>
@kalfonso kalfonso force-pushed the kalfonso.190801-vttestserver-alter-vschema branch from f612783 to aa33b3a Compare August 7, 2019 05:36
@tirsen tirsen self-requested a review August 12, 2019 03:46
@tirsen tirsen merged commit b9d707f into vitessio:master Aug 12, 2019
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.

3 participants