Skip to content

Releases: dgigafox/drill

v1.2.2

08 Aug 10:55
fe506a9
Compare
Choose a tag to compare

Changed

  • Remove warning when any seeder has nonexisting dependency

Added

  • Raise and display error when any seeder has nonexisting dependency

Fixed

  • Update constraints/0 callback typespec

v1.2.1

08 Aug 10:55
Compare
Choose a tag to compare

Added

  • Add dependabot

Fixed

  • Fix run/1 callback being called twice per seeder during seed task
  • Update github actions

v1.2.0

02 Jul 11:15
Compare
Choose a tag to compare

Added

  • Add :returning option to use Drill
  • Allow user to set :source to table name instead of schema
  • Add :repo to Drill.Context
  • Allow user to override location of seeder file through seeds_path option when running mix drill. E.g. mix drill -r MyApp.Repo --seeds-path priv/seeds/core
  • Allow manual seeds and set callback factory/0 to optional

Fixed

  • Remove running migration when running task. Migration should now be run explicitly before running mix drill
  • Start all registered apps before seeding to ensure apps required by seeds have started such as uploaders, genservers, dependencies, etc.

v1.1.0

16 Jun 07:07
Compare
Choose a tag to compare

Added

  • Allow user to set on_conflict strategy using optional callback on_conflict/0
  • Require seeder files to be .exs and remove the need to config :otp_app
  • Allow user to set timeout through config. E.g. config :drill, :timeout, :infinity

v1.0.0

14 Jun 06:18
Compare
Choose a tag to compare

Upgrades

  • Upgrade Elixir & Erlang tool versions to 1.14.5-otp-25 and 25.3.2, respectively

Features

  • Add new required callback factory/0
  • Add new functions seed/0 & seed/1 that return Drill.Seed struct
  • Require run/0 callback to always return a list of Drill.Seed struct

v0.1.1

28 May 11:51
Compare
Choose a tag to compare

Bug Fixes

  • Remove Drill.Demo.Repo from being run on dev
  • Rename module with Demo to Test (e.g. Drill.Demo.Repo is renamed to Drill.Test.Repo)