Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/mix/task/feeb_db/dump_schemas.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ defmodule Mix.Tasks.FeebDb.DumpSchemas do
use Mix.Task
alias Feeb.DB.{Migrator, SQLite}

@requirements ["app.config"]

# TODO: Get these paths from args instead of hard-coding them here
@tmp_db "/tmp/helix_tmp_dump.db"
@output_path "priv/schemas"
Expand Down
2 changes: 2 additions & 0 deletions lib/mix/task/feeb_db/gen/migration.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ defmodule Mix.Tasks.FeebDb.Gen.Migration do
require Logger
alias Feeb.DB.Config

@requirements ["app.config"]

@file_adapter Application.compile_env(:feebdb, :adapters)[:file] || Feeb.Adapters.File

@option_parser_opts [
Expand Down
2 changes: 2 additions & 0 deletions lib/mix/task/feeb_db/gen/query.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ defmodule Mix.Tasks.FeebDb.Gen.Query do
require Logger
alias Feeb.DB.Config

@requirements ["app.config"]

@file_adapter Application.compile_env(:feebdb, :adapters)[:file] || Feeb.Adapters.File

@option_parser_opts [
Expand Down
2 changes: 2 additions & 0 deletions lib/mix/task/feeb_db/migrate.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ defmodule Mix.Tasks.FeebDb.Migrate do
require Logger
alias Feeb.DB.{Boot, Repo}

@requirements ["app.config"]

@impl Mix.Task
def run(_args) do
Repo.Manager.Supervisor.start_link([])
Expand Down