Skip to content

Commit

Permalink
add migration
Browse files Browse the repository at this point in the history
  • Loading branch information
jefer94 committed Dec 9, 2024
1 parent 4d78aad commit dc81b9e
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Generated by Django 5.1.4 on 2024-12-09 20:59

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("assignments", "0020_alter_userattachment_mime"),
]

operations = [
migrations.AlterField(
model_name="repositorydeletionorder",
name="repository_name",
field=models.CharField(max_length=256),
),
migrations.AlterField(
model_name="repositorydeletionorder",
name="repository_user",
field=models.CharField(max_length=256),
),
migrations.AlterField(
model_name="repositorywhitelist",
name="repository_name",
field=models.CharField(max_length=256),
),
migrations.AlterField(
model_name="repositorywhitelist",
name="repository_user",
field=models.CharField(max_length=256),
),
]
8 changes: 4 additions & 4 deletions breathecode/assignments/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,8 @@ def __init__(self, *args, **kwargs):
status = models.CharField(max_length=15, choices=Status, default=Status.PENDING)
status_text = models.TextField(default=None, null=True, blank=True)

repository_user = models.CharField(max_length=100)
repository_name = models.CharField(max_length=100)
repository_user = models.CharField(max_length=256)
repository_name = models.CharField(max_length=256)

starts_transferring_at = models.DateTimeField(default=None, null=True, blank=True)
created_at = models.DateTimeField(auto_now_add=True, editable=False)
Expand All @@ -296,8 +296,8 @@ class RepositoryWhiteList(models.Model):
Provider = Provider

provider = models.CharField(max_length=15, choices=Provider, default=Provider.GITHUB)
repository_user = models.CharField(max_length=100)
repository_name = models.CharField(max_length=100)
repository_user = models.CharField(max_length=256)
repository_name = models.CharField(max_length=256)

created_at = models.DateTimeField(auto_now_add=True, editable=False)

Expand Down

0 comments on commit dc81b9e

Please sign in to comment.