[scrobbles] Migrate scrobble log to JSON field
This commit is contained in:
@ -0,0 +1,18 @@
|
|||||||
|
# Generated by Django 4.2.9 on 2024-04-05 14:39
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
("scrobbles", "0050_delete_scrobbledpage"),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name="scrobble",
|
||||||
|
name="scrobble_log",
|
||||||
|
field=models.JSONField(blank=True, null=True),
|
||||||
|
),
|
||||||
|
]
|
||||||
@ -522,7 +522,7 @@ class Scrobble(TimeStampedModel):
|
|||||||
# Metadata
|
# Metadata
|
||||||
source = models.CharField(max_length=255, **BNULL)
|
source = models.CharField(max_length=255, **BNULL)
|
||||||
source_id = models.TextField(**BNULL)
|
source_id = models.TextField(**BNULL)
|
||||||
scrobble_log = models.TextField(**BNULL)
|
scrobble_log = models.JSONField(**BNULL)
|
||||||
notes = models.TextField(**BNULL)
|
notes = models.TextField(**BNULL)
|
||||||
|
|
||||||
# Fields for keeping track of book data
|
# Fields for keeping track of book data
|
||||||
|
|||||||
Reference in New Issue
Block a user