Skip to content

Commit

Permalink
Release v1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dgigafox committed Jul 2, 2023
1 parent 606e204 commit 8fa1db0
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]
## [1.2.0] - 2023-07-02

### Added

Expand All @@ -15,6 +15,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- 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 by 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.

## [1.1.0] - 2023-06-16

### Added
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ Default timeout is 600 seconds or 10 minutes. You may configure the task timeout
Autogenerated fields such as `:inserted_at` or `:updated_at` may not be defined. The first argument is the `Drill.Context` struct, which
you can use to get the inserted records from previously run seeder modules (see Usage section above).

## Command line options

- `--repo` - specifies the repository to use
- `--seeds-path` - overrides the default seeds path
- Command line options for `mix app.start` documented [here](https://hexdocs.pm/mix/1.15.2/Mix.Tasks.App.Start.html#module-command-line-options)

## Caveat

Can only be used on Postgres database for now
Expand Down
5 changes: 5 additions & 0 deletions lib/drill.ex
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ defmodule Drill do
* `run/1` (required) - returns a list of seeds (a call to `Drill.seed/1` function or anything you want to include in the context seed).
Autogenerated fields such as `:inserted_at` or `:updated_at` may not be defined. The first argument is the `Drill.Context` struct, which
you can use to get the inserted records from previously run seeder modules (see Usage section above).
## Command line options
* `--repo` - specifies the repository to use
* `--seeds-path` - overrides the default seeds path
* Command line options for `mix app.start` documented [here](https://hexdocs.pm/mix/1.15.2/Mix.Tasks.App.Start.html#module-command-line-options)
"""
alias Drill.Context
alias Drill.Seed
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ defmodule Drill.MixProject do
def project do
[
app: :drill,
version: "1.1.0",
version: "1.2.0",
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
aliases: aliases(),
Expand Down

0 comments on commit 8fa1db0

Please sign in to comment.