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
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: CI

on:
pull_request:
push:
branches: main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: freckle/stack-action@v5

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: haskell/actions/hlint-setup@v2
- uses: haskell/actions/hlint-run@v2
with:
fail-on: warning
6 changes: 2 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.*.swp
.cabal-sandbox
cabal.sandbox.config
dist
.stack-work
dist-newstyle
result
5 changes: 5 additions & 0 deletions .restyled.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
restylers:
- "!stylish-haskell"
- fourmolu
- hlint
- "*"
82 changes: 5 additions & 77 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,81 +1,9 @@
## [_Unreleased_](https://github.com/pbrisbin/dbmigrations/compare/v3.0.0.0...main)

2.1.0
-----
## [v3.0.0.0](https://github.com/pbrisbin/dbmigrations/tree/v3.0.0.0)

Package changes:
- Migrated from `yaml-light` to `yaml` package for YAML parsing (thanks
Hank Levsen <hlevsen@atlassian.com>)
First release after change of maintainer.

Other changes:
- `Text` is now used instead of `String` in most parts of the codebase
(thanks Vitalii Guzeev <vitaliy@getshoptv.com>)
- New migrations now get the `.yml` file extension, but old migration
`txt` files are also supported.
## v2

2.0.0
-----

This release contains breaking changes!

- Factored out all database-specific functionality into separate
packages (thanks Bastian Krol)
- Replaced "moo" program with one that emits an error instructing users
to use backend-specific dbmigrations packages
- Added missing test data files to package
- Removed `DBM_DATABASE_TYPE` environment variable in favor of backend
selection by use of backend-specific packages
- Allow `DBM_TIMESTAMP_FILENAMES` to be set via environment variable
(thanks Alexander Lippling)

1.1.1
-----

- Improve configuration validation error messages and clean up
validation routine
- Reinstate support for GHC 7.8

1.1
---

- Add support for MySQL databases (thanks Ollie Charles
<ollie@ocharles.org.uk>). Please see MOO.TXT for a disclaimer about this
feature!

1.0
---

- Added support for (optionally) adding timestamps to generated
migration filenames (thanks Matt Parsons <parsonsmatt@gmail.com>)
* Adds flag for time stamp on file names
* Adds configuration for timestamping filenames
- Added new "linear migrations" feature (thanks Jakub Fijałkowski
<fiolek94@gmail.com>, Andrew Martin <amartin@layer3com.com>). This
feature is an optional alternative to the default behavior: rather than
prompting the user for dependencies of new migrations (the default
behavior), linear mode automatically selects dependencies for new
migrations such that they depend on the smallest subset of migrations
necessary to (effectively) depend on all existing migrations, thus
"linearizing" the migration sequence. See MOO.TXT for details.
- Configuration file loading now defaults to "moo.cfg" in the CWD if
--config-file is not specified, and environment variables override
settings in the config file

0.9.1
-----

- Restored default timestamp and description values in migrations
created by new migration command

0.9
---

- Fix 'moo' usage output to use correct program name
- Replaced Backend type class in favor of concrete Backend record type
- Added hdbcBackend constructor
- Backends now always run in IO rather than some MonadIO
- Removed monad parameter from MigrationStore (always use IO)
- Replaced MigrationStore type class with concrete MigrationStore type
- Added filesystem migration store constructor
- Improve configuration type so that it has been implicitly validated
- Made newMigration pure, made migration timestamps optional
- createNewMigration now takes a Migration for greater caller control
See https://github.com/jtdaugherty/dbmigrations.
Loading
Loading