Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Biigint ftw wave 2 #9170

Merged
merged 6 commits into from
Dec 5, 2024
Merged

Biigint ftw wave 2 #9170

merged 6 commits into from
Dec 5, 2024

Conversation

flvndvd
Copy link
Contributor

@flvndvd flvndvd commented Dec 5, 2024

Description

Applies the same logic as #9164 but for the connectors database.

All the tables have been migrated to BigInt in production.

Risk

Deploy Plan

No migrations required to be run.

@flvndvd flvndvd marked this pull request as ready for review December 5, 2024 20:26
Copy link

github-actions bot commented Dec 5, 2024

Warnings
⚠️

Files in **/lib/models/ have been modified and the PR has the migration-ack label. Don't forget to run the migration from prodbox.

Generated by 🚫 dangerJS against 81f538e

autoIncrement: true,
primaryKey: true,
},
connectorId: {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not needed since we have a relationship defined below.

@flvndvd flvndvd added the migration-ack 📁 Label to acknowledge that a migration is required. label Dec 5, 2024
@flvndvd
Copy link
Contributor Author

flvndvd commented Dec 5, 2024

PMRR

@flvndvd flvndvd merged commit 3d0a916 into main Dec 5, 2024
7 checks passed
@flvndvd flvndvd deleted the flav/bigint-ftw-wave-2 branch December 5, 2024 21:36
Copy link
Contributor

@JulesBelveze JulesBelveze left a comment

Choose a reason for hiding this comment

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

🔥 💪🏼

* A wrapper class that enforces BIGINT for all model primary keys.
* All models should extend this class instead of Sequelize's Model.
*/
export class BaseModel<M extends Model> extends Model<
Copy link
Contributor

Choose a reason for hiding this comment

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

🔥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
migration-ack 📁 Label to acknowledge that a migration is required.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants