Skip to content

Commit 162a32f

Browse files
authored
Merge pull request #47 from haskell-github-trust/update_dbmigrations
Integrate modernization from pbrisbin/dbmigrations
2 parents c2302e0 + 2be737c commit 162a32f

File tree

85 files changed

+3884
-3372
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+3884
-3372
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: freckle/stack-action@v5
14+
15+
lint:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: haskell/actions/hlint-setup@v2
20+
- uses: haskell/actions/hlint-run@v2
21+
with:
22+
fail-on: warning

.gitignore

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
.*.swp
2-
.cabal-sandbox
3-
cabal.sandbox.config
4-
dist
1+
.stack-work
52
dist-newstyle
3+
result

.restyled.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
restylers:
2+
- "!stylish-haskell"
3+
- fourmolu
4+
- hlint
5+
- "*"

CHANGELOG.md

Lines changed: 5 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,9 @@
1+
## [_Unreleased_](https://github.com/pbrisbin/dbmigrations/compare/v3.0.0.0...main)
12

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

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

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

15-
2.0.0
16-
-----
17-
18-
This release contains breaking changes!
19-
20-
- Factored out all database-specific functionality into separate
21-
packages (thanks Bastian Krol)
22-
- Replaced "moo" program with one that emits an error instructing users
23-
to use backend-specific dbmigrations packages
24-
- Added missing test data files to package
25-
- Removed `DBM_DATABASE_TYPE` environment variable in favor of backend
26-
selection by use of backend-specific packages
27-
- Allow `DBM_TIMESTAMP_FILENAMES` to be set via environment variable
28-
(thanks Alexander Lippling)
29-
30-
1.1.1
31-
-----
32-
33-
- Improve configuration validation error messages and clean up
34-
validation routine
35-
- Reinstate support for GHC 7.8
36-
37-
1.1
38-
---
39-
40-
- Add support for MySQL databases (thanks Ollie Charles
41-
<ollie@ocharles.org.uk>). Please see MOO.TXT for a disclaimer about this
42-
feature!
43-
44-
1.0
45-
---
46-
47-
- Added support for (optionally) adding timestamps to generated
48-
migration filenames (thanks Matt Parsons <parsonsmatt@gmail.com>)
49-
* Adds flag for time stamp on file names
50-
* Adds configuration for timestamping filenames
51-
- Added new "linear migrations" feature (thanks Jakub Fijałkowski
52-
<fiolek94@gmail.com>, Andrew Martin <amartin@layer3com.com>). This
53-
feature is an optional alternative to the default behavior: rather than
54-
prompting the user for dependencies of new migrations (the default
55-
behavior), linear mode automatically selects dependencies for new
56-
migrations such that they depend on the smallest subset of migrations
57-
necessary to (effectively) depend on all existing migrations, thus
58-
"linearizing" the migration sequence. See MOO.TXT for details.
59-
- Configuration file loading now defaults to "moo.cfg" in the CWD if
60-
--config-file is not specified, and environment variables override
61-
settings in the config file
62-
63-
0.9.1
64-
-----
65-
66-
- Restored default timestamp and description values in migrations
67-
created by new migration command
68-
69-
0.9
70-
---
71-
72-
- Fix 'moo' usage output to use correct program name
73-
- Replaced Backend type class in favor of concrete Backend record type
74-
- Added hdbcBackend constructor
75-
- Backends now always run in IO rather than some MonadIO
76-
- Removed monad parameter from MigrationStore (always use IO)
77-
- Replaced MigrationStore type class with concrete MigrationStore type
78-
- Added filesystem migration store constructor
79-
- Improve configuration type so that it has been implicitly validated
80-
- Made newMigration pure, made migration timestamps optional
81-
- createNewMigration now takes a Migration for greater caller control
9+
See https://github.com/jtdaugherty/dbmigrations.

0 commit comments

Comments
 (0)