2019-10-07 09:36:18 +13:00
|
|
|
use Mix.Config
|
2020-06-01 17:36:43 +12:00
|
|
|
|
2020-06-03 15:29:11 +12:00
|
|
|
if Mix.env() == :dev do
|
|
|
|
config :git_ops,
|
|
|
|
mix_project: AshPostgres.MixProject,
|
|
|
|
changelog_file: "CHANGELOG.md",
|
|
|
|
repository_url: "https://github.com/ash-project/ash_postgres",
|
|
|
|
# Instructs the tool to manage your mix version in your `mix.exs` file
|
|
|
|
# See below for more information
|
|
|
|
manage_mix_version?: true,
|
|
|
|
# Instructs the tool to manage the version in your README.md
|
|
|
|
# Pass in `true` to use `"README.md"` or a string to customize
|
|
|
|
manage_readme_version: "README.md",
|
|
|
|
version_tag_prefix: "v"
|
|
|
|
end
|
2020-09-03 20:18:11 +12:00
|
|
|
|
|
|
|
if Mix.env() == :test do
|
|
|
|
config :ash_postgres, AshPostgres.TestRepo,
|
|
|
|
username: "postgres",
|
2020-09-11 12:26:47 +12:00
|
|
|
database: "ash_postgres_test",
|
2020-09-03 20:18:11 +12:00
|
|
|
hostname: "localhost",
|
|
|
|
pool: Ecto.Adapters.SQL.Sandbox
|
|
|
|
|
|
|
|
# sobelow_skip ["Config.Secrets"]
|
|
|
|
config :ash_postgres, AshPostgres.TestRepo, password: "postgres"
|
|
|
|
|
|
|
|
config :ash_postgres, ecto_repos: [AshPostgres.TestRepo]
|
|
|
|
|
|
|
|
config :ash_postgres, AshPostgres.TestRepo, migration_primary_key: [name: :id, type: :binary_id]
|
|
|
|
|
|
|
|
config :logger, level: :warn
|
|
|
|
end
|