From 8fbe37a16333763f117171621557e0052770fa0f Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Fri, 19 Apr 2024 15:01:15 -0400 Subject: [PATCH] [scrobbles] Remove playback ticks --- .../0054_remove_scrobble_notes_and_more.py | 21 +++++++++++++++++++ vrobbler/apps/scrobbles/models.py | 2 -- 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 vrobbler/apps/scrobbles/migrations/0054_remove_scrobble_notes_and_more.py diff --git a/vrobbler/apps/scrobbles/migrations/0054_remove_scrobble_notes_and_more.py b/vrobbler/apps/scrobbles/migrations/0054_remove_scrobble_notes_and_more.py new file mode 100644 index 0000000..be2e872 --- /dev/null +++ b/vrobbler/apps/scrobbles/migrations/0054_remove_scrobble_notes_and_more.py @@ -0,0 +1,21 @@ +# Generated by Django 4.2.9 on 2024-04-19 19:00 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ("scrobbles", "0053_remove_scrobble_source_id"), + ] + + operations = [ + migrations.RemoveField( + model_name="scrobble", + name="notes", + ), + migrations.RemoveField( + model_name="scrobble", + name="playback_position_ticks", + ), + ] diff --git a/vrobbler/apps/scrobbles/models.py b/vrobbler/apps/scrobbles/models.py index 119bf03..94d05f6 100644 --- a/vrobbler/apps/scrobbles/models.py +++ b/vrobbler/apps/scrobbles/models.py @@ -512,7 +512,6 @@ class Scrobble(TimeStampedModel): # Time keeping timestamp = models.DateTimeField(**BNULL) stop_timestamp = models.DateTimeField(**BNULL) - playback_position_ticks = models.PositiveBigIntegerField(**BNULL) playback_position_seconds = models.IntegerField(**BNULL) # Status indicators @@ -523,7 +522,6 @@ class Scrobble(TimeStampedModel): # Metadata source = models.CharField(max_length=255, **BNULL) scrobble_log = models.JSONField(**BNULL) - notes = models.TextField(**BNULL) timezone = models.CharField(max_length=50, **BNULL) # Fields for keeping track of book data