Initial commit: Replacing repo with local files
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
[
|
||||
import_deps: [:ecto_sql],
|
||||
inputs: ["*.exs"]
|
||||
]
|
||||
@@ -0,0 +1,14 @@
|
||||
defmodule RiverConnect.Repo.Migrations.CreateAudioMessages do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
create table(:audio_messages) do
|
||||
add :user_id, :string
|
||||
add :file_path, :string
|
||||
add :duration_ms, :integer
|
||||
add :status, :string
|
||||
|
||||
timestamps(type: :utc_datetime)
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,10 @@
|
||||
defmodule RiverConnect.Repo.Migrations.AddObanJobsTable do
|
||||
use Ecto.Migration
|
||||
def up do
|
||||
Oban.Migrations.up()
|
||||
end
|
||||
|
||||
def down do
|
||||
Oban.Migrations.down()
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,11 @@
|
||||
# Script for populating the database. You can run it as:
|
||||
#
|
||||
# mix run priv/repo/seeds.exs
|
||||
#
|
||||
# Inside the script, you can read and write to any of your
|
||||
# repositories directly:
|
||||
#
|
||||
# RiverConnect.Repo.insert!(%RiverConnect.SomeSchema{})
|
||||
#
|
||||
# We recommend using the bang functions (`insert!`, `update!`
|
||||
# and so on) as they will fail if something goes wrong.
|
||||
Reference in New Issue
Block a user