Skip to content

fix(appconnect): Use app_id_str field - #40322

Merged
loewenheim merged 16 commits into
masterfrom
fix/use-appid-str
Oct 24, 2022
Merged

loewenheim merged 16 commits into
masterfrom
fix/use-appid-str

Conversation

@loewenheim

@loewenheim loewenheim commented Oct 20, 2022 •

Copy link
Copy Markdown
Contributor

This is step 3 in the effort to change the type of AppConnectBuild.app_id from an integer to a string.

It replaces all uses of the app_id field with app_id_str and makes the app_id field nullable, since it is not written any longer.

Depends on #40321.

@Swatinem Swatinem left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I believe this comment is relevant here: #40325 (review)

As you are not writing the column anymore, it needs to be nullable in the database first.

@Swatinem
Swatinem self-requested a review October 21, 2022 07:35
@github-actions

Copy link
Copy Markdown
Contributor

This PR has a migration; here is the generated SQL for src/sentry/migrations/0329_make_app_id_nullable.py ()

--
-- Alter field app_id on appconnectbuild
--
ALTER TABLE "sentry_appconnectbuild" ALTER COLUMN "app_id" DROP NOT NULL;

This branch was successfully deployed

2 active deployments
Preview – storybook — 8d9f8c6e Deployed Oct 24, 2022 by vercel[bot]
Preview – sentry — 8d9f8c6e Deployed Oct 24, 2022 by vercel[bot]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants