View Source Membrane.RTC.Engine.TimescaleDB.Migrations (Membrane Template plugin v0.1.0)

Migrations creating DB tables required by this library to function. To execute migrations, run Elixir.Membrane.RTC.Engine.TimescaleDB.Migrations.up(). To undo them and drop tables, run Elixir.Membrane.RTC.Engine.TimescaleDB.Migrations.down(). Suggested way of using functions from this module, is to create a migration module in your own project and call them there, eg.

defmodule MyApp.CreateRtcEngineTimescaledbTables do
  use Ecto.Migration

  @spec up() :: :ok
  def up() do
    :ok = Elixir.Membrane.RTC.Engine.TimescaleDB.Migrations.up()
  end

  @spec down() :: :ok
  def down() do
    :ok = Elixir.Membrane.RTC.Engine.TimescaleDB.Migrations.down()
  end
end

Link to this section Summary

Link to this section Functions