imdb ids can be longer
This commit is contained in:
parent
63809c2f48
commit
198cc2282f
2 changed files with 24 additions and 1 deletions
23
oxdata/lookup/migrations/0002_imdb.py
Normal file
23
oxdata/lookup/migrations/0002_imdb.py
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# Generated by Django 1.11.13 on 2018-06-19 20:24
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
import django.core.serializers.json
|
||||||
|
from django.db import migrations, models
|
||||||
|
import oxdjango.fields
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('lookup', '0001_initial'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='MovieId',
|
||||||
|
name='imdb_id',
|
||||||
|
field=models.CharField(blank=True, default=None, max_length=16, null=True, unique=True),
|
||||||
|
),
|
||||||
|
]
|
||||||
|
|
|
@ -49,7 +49,7 @@ class MovieId(models.Model):
|
||||||
episode = models.IntegerField(default=-1)
|
episode = models.IntegerField(default=-1)
|
||||||
|
|
||||||
oxdb_id = models.CharField(max_length=42, unique=True, blank=True, null=True, default=None)
|
oxdb_id = models.CharField(max_length=42, unique=True, blank=True, null=True, default=None)
|
||||||
imdb_id = models.CharField(max_length=7, unique=True, blank=True, null=True, default=None)
|
imdb_id = models.CharField(max_length=16, unique=True, blank=True, null=True, default=None)
|
||||||
|
|
||||||
amg_id = models.IntegerField(unique=True, blank=True, null=True, default=None)
|
amg_id = models.IntegerField(unique=True, blank=True, null=True, default=None)
|
||||||
archiveorg_id = models.CharField(unique=True, max_length=255, blank=True, null=True, default=None)
|
archiveorg_id = models.CharField(unique=True, max_length=255, blank=True, null=True, default=None)
|
||||||
|
|
Loading…
Reference in a new issue