2022-05-14 19:01:14 +12:00
|
|
|
import 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
|
2024-05-02 06:40:16 +12:00
|
|
|
manage_readme_version: [
|
|
|
|
"README.md",
|
|
|
|
"documentation/tutorials/get-started-with-ash-postgres.md"
|
|
|
|
],
|
2020-06-03 15:29:11 +12:00
|
|
|
version_tag_prefix: "v"
|
|
|
|
end
|
2020-09-03 20:18:11 +12:00
|
|
|
|
|
|
|
if Mix.env() == :test do
|
2024-03-28 09:52:28 +13:00
|
|
|
config :ash, :validate_domain_resource_inclusion?, false
|
|
|
|
config :ash, :validate_domain_config_inclusion?, false
|
2023-07-18 14:35:46 +12:00
|
|
|
|
2024-05-03 16:02:04 +12:00
|
|
|
config :ash, :policies, show_policy_breakdowns?: true
|
|
|
|
|
2024-04-10 12:21:04 +12:00
|
|
|
config :ash_postgres, :ash_domains, [AshPostgres.Test.Domain]
|
|
|
|
|
2020-09-03 20:18:11 +12:00
|
|
|
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"
|
|
|
|
|
2023-05-18 05:17:37 +12:00
|
|
|
config :ash_postgres, AshPostgres.TestRepo, migration_primary_key: [name: :id, type: :binary_id]
|
|
|
|
|
|
|
|
config :ash_postgres, AshPostgres.TestNoSandboxRepo,
|
|
|
|
username: "postgres",
|
|
|
|
database: "ash_postgres_test",
|
|
|
|
hostname: "localhost"
|
|
|
|
|
|
|
|
# sobelow_skip ["Config.Secrets"]
|
|
|
|
config :ash_postgres, AshPostgres.TestNoSandboxRepo, password: "postgres"
|
|
|
|
|
|
|
|
config :ash_postgres, AshPostgres.TestNoSandboxRepo,
|
|
|
|
migration_primary_key: [name: :id, type: :binary_id]
|
|
|
|
|
2021-02-25 07:59:49 +13:00
|
|
|
config :ash_postgres,
|
2023-05-18 05:17:37 +12:00
|
|
|
ecto_repos: [AshPostgres.TestRepo, AshPostgres.TestNoSandboxRepo],
|
2024-03-28 09:52:28 +13:00
|
|
|
ash_domains: [
|
|
|
|
AshPostgres.Test.Domain,
|
|
|
|
AshPostgres.MultitenancyTest.Domain,
|
|
|
|
AshPostgres.Test.ComplexCalculations.Domain
|
2023-08-17 12:49:18 +12:00
|
|
|
]
|
2020-09-03 20:18:11 +12:00
|
|
|
|
2023-07-20 04:50:05 +12:00
|
|
|
config :logger, level: :warning
|
2020-09-03 20:18:11 +12:00
|
|
|
end
|