Skip to content

Commit

Permalink
Migrating ComicBook file_name from a CharField to TextField (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
apoclyps authored and ajurna committed Jul 31, 2019
1 parent 4ec309b commit 1033ed8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions comic/migrations/0019_auto_20190730_1846.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 2.2.3 on 2019-07-30 18:46

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('comic', '0018_auto_20170113_1531'),
]

operations = [
migrations.AlterField(
model_name='comicbook',
name='file_name',
field=models.TextField(),
),
]
2 changes: 1 addition & 1 deletion comic/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def get_dir_from_path(file_path):


class ComicBook(models.Model):
file_name = models.CharField(max_length=100, unique=False)
file_name = models.TextField()
date_added = models.DateTimeField(auto_now_add=True)
directory = models.ForeignKey(Directory, blank=True, null=True, on_delete=models.CASCADE)
selector = models.UUIDField(unique=True, default=uuid.uuid4, db_index=True)
Expand Down

0 comments on commit 1033ed8

Please sign in to comment.