Fix playlists migration to add unique fid field
This commit is contained in:
parent
6d85f2e352
commit
65dd47c1f1
|
@ -42,7 +42,7 @@ class Migration(migrations.Migration):
|
|||
migrations.AddField(
|
||||
model_name="playlist",
|
||||
name="fid",
|
||||
field=models.URLField(max_length=500 ),
|
||||
field=models.URLField(max_length=500, null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="playlist",
|
||||
|
@ -63,8 +63,13 @@ class Migration(migrations.Migration):
|
|||
migrations.AlterField(
|
||||
model_name="playlist",
|
||||
name="fid",
|
||||
field=models.URLField(max_length=500, unique=True, db_index=True,
|
||||
),),
|
||||
field=models.URLField(
|
||||
max_length=500,
|
||||
unique=True,
|
||||
db_index=True,
|
||||
null=False,
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="playlist",
|
||||
name="actor",
|
||||
|
|
Loading…
Reference in New Issue