Merge pull request 'add null=True to vimeo_id field so db allows NULLable, add migration' (#14) from video-vimeo-id into main
Reviewed-on: 0x2620/aab21#14
This commit is contained in:
commit
0cf6e13e90
2 changed files with 19 additions and 1 deletions
18
app/video/migrations/0004_alter_film_vimeo_id.py
Normal file
18
app/video/migrations/0004_alter_film_vimeo_id.py
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
# Generated by Django 3.2.7 on 2021-10-23 09:46
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('video', '0003_film_position'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='film',
|
||||||
|
name='vimeo_id',
|
||||||
|
field=models.CharField(blank=True, null=True, default=None, max_length=255),
|
||||||
|
),
|
||||||
|
]
|
|
@ -21,7 +21,7 @@ class Film(models.Model):
|
||||||
position = models.IntegerField(default=0)
|
position = models.IntegerField(default=0)
|
||||||
|
|
||||||
padma_id = models.CharField(max_length=255)
|
padma_id = models.CharField(max_length=255)
|
||||||
vimeo_id = models.CharField(max_length=255, default=None, blank=True)
|
vimeo_id = models.CharField(max_length=255, default=None, blank=True, null=True)
|
||||||
|
|
||||||
data = models.JSONField(default=dict, blank=True)
|
data = models.JSONField(default=dict, blank=True)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue