Skip to content

Commit

Permalink
add field to GithubAppInstallation for suspended apps (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
giovanni-guidini authored Jun 5, 2024
1 parent 95c7e98 commit e954d86
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Generated by Django 4.2.13 on 2024-06-03 13:42

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("codecov_auth", "0055_session_login_session"),
]

# BEGIN;
# --
# -- Add field is_suspended to githubappinstallation
# --
# ALTER TABLE "codecov_auth_githubappinstallation" ADD COLUMN "is_suspended" boolean DEFAULT false NOT NULL;
# ALTER TABLE "codecov_auth_githubappinstallation" ALTER COLUMN "is_suspended" DROP DEFAULT;
# COMMIT;

operations = [
migrations.AddField(
model_name="githubappinstallation",
name="is_suspended",
field=models.BooleanField(default=False),
),
]
2 changes: 2 additions & 0 deletions shared/django_apps/codecov_auth/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,8 @@ class GithubAppInstallation(
# Same comments for app_id apply
pem_path = models.TextField(null=True, blank=False)

is_suspended = models.BooleanField(null=False, default=False)

owner = models.ForeignKey(
Owner,
null=False,
Expand Down

0 comments on commit e954d86

Please sign in to comment.