Skip to content

fix(snyk)!: Add organization_id to primary keys#9658

Merged
kodiakhq[bot] merged 1 commit into
mainfrom
fix/snyk_dependencies
Apr 4, 2023
Merged

fix(snyk)!: Add organization_id to primary keys#9658
kodiakhq[bot] merged 1 commit into
mainfrom
fix/snyk_dependencies

Conversation

@candiduslynx
Copy link
Copy Markdown
Contributor

@candiduslynx candiduslynx commented Apr 4, 2023

Fixes https://github.com/cloudquery/cloudquery-issues/issues/511

BEGIN_COMMIT_OVERRIDE
fix(snyk)!: Add organization_id to primary keys (#9658)
BREAKING-CHANGE: Added organization_id to primary keys to ensure no duplicate primary keys are encountered.
The following tables are affected:

  • snyk_dependencies
  • snyk_integrations
  • snyk_projects

END_COMMIT_OVERRIDE

@candiduslynx candiduslynx added the automerge Automatically merge once required checks pass label Apr 4, 2023
@candiduslynx candiduslynx requested review from a team and amanenk and removed request for a team April 4, 2023 10:22
@candiduslynx candiduslynx changed the title fix(snyk): Add organization_id to primary keys fix(snyk)!: Add organization_id to primary keys Apr 4, 2023
@candiduslynx candiduslynx requested a review from erezrokah April 4, 2023 10:22
@candiduslynx candiduslynx requested review from disq and hermanschaaf and removed request for amanenk April 4, 2023 10:22
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 4, 2023

This PR has the following changes to source plugin(s) tables:

  • ⚠️ BREAKING CHANGE: Table snyk_dependencies: column added with name organization_id (PK) and type String
  • ⚠️ BREAKING CHANGE: Table snyk_integrations: primary key constraint added to column organization_id
  • Table snyk_integrations: column order changed for id
  • Table snyk_organizations: column order changed for id
  • ⚠️ BREAKING CHANGE: Table snyk_projects: primary key constraint added to column organization_id

@kodiakhq kodiakhq Bot merged commit 6b4e1af into main Apr 4, 2023
@kodiakhq kodiakhq Bot deleted the fix/snyk_dependencies branch April 4, 2023 10:33
kodiakhq Bot pushed a commit that referenced this pull request Apr 4, 2023
🤖 I have created a release *beep* *boop*
---


## [2.0.0](plugins-source-snyk-v1.2.2...plugins-source-snyk-v2.0.0) (2023-04-04)


### ⚠ BREAKING CHANGES

* **snyk:** Added `organization_id` to primary keys to ensure no duplicate primary keys are encountered. The following tables are affected:
    * `snyk_dependencies`
    * `snyk_integrations`
    * `snyk_projects`

### This Release has the Following Changes to Tables
- Table `snyk_dependencies`: column added with name `organization_id (PK)` and type `String` (:warning: breaking)
- Table `snyk_integrations`: primary key constraint added to column `organization_id` (:warning: breaking)
- Table `snyk_integrations`: column order changed for `id`
- Table `snyk_organizations`: column order changed for `id`
- Table `snyk_projects`: primary key constraint added to column `organization_id` (:warning: breaking)

### Bug Fixes

* **deps:** Update golang.org/x/exp digest to 10a5072 ([#9587](#9587)) ([31f913f](31f913f))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.44.1 ([#9520](#9520)) ([202c31b](202c31b))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.44.2 ([#9661](#9661)) ([a27dc84](a27dc84))
* **deps:** Update module github.com/mattn/go-isatty to v0.0.18 ([#9609](#9609)) ([5b2908e](5b2908e))
* **snyk:** Add `organization_id` to primary keys ([#9658](#9658)) ([6b4e1af](6b4e1af))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants