Switch to sqlite (#22)

* Updated project to use sqlite

* Edited migrations directly because I fear no man

* Updated search functions and tests to work with sqlite

* Updated build tools to remove postgres
This commit is contained in:
Kieran
2024-02-16 10:11:41 -08:00
committed by GitHub
parent 44bd105e80
commit 8fcd41f45d
29 changed files with 121 additions and 186 deletions
@@ -6,12 +6,12 @@ defmodule Pinchflat.Repo.Migrations.CreateMediaItems do
add :media_id, :string, null: false
add :title, :string
add :video_filepath, :string
add :channel_id, references(:channels, on_delete: :restrict), null: false
add :source_id, references(:sources, on_delete: :restrict), null: false
timestamps(type: :utc_datetime)
end
create index(:media_items, [:channel_id])
create unique_index(:media_items, [:media_id, :channel_id])
create index(:media_items, [:source_id])
create unique_index(:media_items, [:media_id, :source_id])
end
end