Skip to content

feat: Testable Migrations (core)#406

Merged
roneli merged 45 commits into
cloudquery:mainfrom
disq:feat/all-migrations-as-files
Jan 20, 2022
Merged

feat: Testable Migrations (core)#406
roneli merged 45 commits into
cloudquery:mainfrom
disq:feat/all-migrations-as-files

Conversation

@disq
Copy link
Copy Markdown
Member

@disq disq commented Jan 10, 2022

Using the new version 4 proto and SDK.
Old migrations are no more. 🦜
TableCreator calls are also no more 🦜 unless we're using an older provider (with proto 3) or the provider didn't define any migrations (so that migrations in a provider are kept optional even with the newer proto)

Please see relevant PRs on other projects:
cloudquery/cq-provider-sdk#146
cloudquery/cq-provider-aws#401
https://github.com/cloudquery/docs/pull/75
https://github.com/cloudquery/cq-provider-template/pull/12

@disq disq requested a review from roneli January 10, 2022 23:49
@disq disq changed the title Testable Migrations Testable Migrations (core) Jan 11, 2022
@disq disq changed the title Testable Migrations (core) feat: Testable Migrations (core) Jan 11, 2022
@disq disq marked this pull request as ready for review January 14, 2022 11:23
@disq disq force-pushed the feat/all-migrations-as-files branch 3 times, most recently from f88e85c to 85822b8 Compare January 17, 2022 19:44
Copy link
Copy Markdown
Contributor

@roneli roneli left a comment

Choose a reason for hiding this comment

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

Adding some comments, requires another pass, will do one more tomorrow.

Comment thread pkg/client/history/ddlmanager.go Outdated
Comment thread pkg/client/client.go Outdated
Comment thread pkg/client/client.go
Comment thread pkg/module/drift/config.go
Comment thread pkg/client/history/ddlmanager.go
Comment thread pkg/client/database/timescale/timescale.go Outdated
Comment thread pkg/client/client.go Outdated
@disq disq requested a review from roneli January 17, 2022 21:38
Copy link
Copy Markdown
Contributor

@roneli roneli left a comment

Choose a reason for hiding this comment

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

LGTM, 1 minor nit

Comment thread pkg/client/history/history.go
@disq disq force-pushed the feat/all-migrations-as-files branch from 0b73708 to 878eeda Compare January 19, 2022 16:00
Copy link
Copy Markdown
Contributor

@roneli roneli left a comment

Choose a reason for hiding this comment

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

Minor nit, lets merge this as other PRs are broke because of the change.

Comment thread pkg/client/database/timescale/timescale.go Outdated
@roneli roneli merged commit c4e1b5e into cloudquery:main Jan 20, 2022
@disq disq deleted the feat/all-migrations-as-files branch January 20, 2022 14:44
TinLe pushed a commit to TinLe/cloudquery that referenced this pull request Jan 20, 2022
* upstream/main:
  fix: Better drift tfstate error (cloudquery#430)
  feat: Migrations v2 (core) (cloudquery#406)
@cq-bot cq-bot mentioned this pull request Aug 9, 2022
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.

2 participants