mirror of
https://github.com/ajurna/cbwebreader.git
synced 2025-12-06 06:17:17 +00:00
Migrating ComicBook file_name from a CharField to TextField (#13)
This commit is contained in:
18
comic/migrations/0019_auto_20190730_1846.py
Normal file
18
comic/migrations/0019_auto_20190730_1846.py
Normal file
@@ -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(),
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -69,7 +69,7 @@ class Directory(models.Model):
|
|||||||
|
|
||||||
|
|
||||||
class ComicBook(models.Model):
|
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)
|
date_added = models.DateTimeField(auto_now_add=True)
|
||||||
directory = models.ForeignKey(Directory, blank=True, null=True, on_delete=models.CASCADE)
|
directory = models.ForeignKey(Directory, blank=True, null=True, on_delete=models.CASCADE)
|
||||||
selector = models.UUIDField(unique=True, default=uuid.uuid4, db_index=True)
|
selector = models.UUIDField(unique=True, default=uuid.uuid4, db_index=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user