From 5f6911ce983e314c15eef04bb3ba46e528316d50 Mon Sep 17 00:00:00 2001 From: Chris McCord Date: Thu, 27 Jan 2022 14:41:37 -0500 Subject: [PATCH] Fix seekable songs --- .../migrations/20220127172551_add_file_size_to_songs.exs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 priv/repo/migrations/20220127172551_add_file_size_to_songs.exs diff --git a/priv/repo/migrations/20220127172551_add_file_size_to_songs.exs b/priv/repo/migrations/20220127172551_add_file_size_to_songs.exs new file mode 100644 index 0000000..0751293 --- /dev/null +++ b/priv/repo/migrations/20220127172551_add_file_size_to_songs.exs @@ -0,0 +1,9 @@ +defmodule LiveBeats.Repo.Migrations.AddFileSizeToSongs do + use Ecto.Migration + + def change do + alter table(:songs) do + add :mp3_filesize, :integer, null: false, default: 0 + end + end +end