Skip to content
Merged
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
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ An embeddable library for applying changes to your Go application's
## Features

- Cloud-friendly design tolerates embedded use in clusters
- Supports migrations in embed.FS (requires go:embed in Go 1.16+)
- Supports migrations in embed.FS via `go:embed`
- [Depends only on Go standard library](https://pkg.go.dev/github.com/adlio/schema?tab=imports) (Note that all go.mod dependencies are used only in tests)
- Unidirectional migrations (no "down" migration complexity)

Expand All @@ -30,9 +30,9 @@ The `[]*schema.Migration` can be created manually, but the package
has some utility functions to make it easier to parse .sql files into structs
with the filename as the `ID` and the file contents as the `Script`.

## Using go:embed (requires Go 1.16+)
## Using go:embed

Go 1.16 added features to embed a directory of files into the binary as an
Go's `embed` package lets you embed a directory of files into the binary as an
embedded filesystem (`embed.FS`).

Assuming you have a directory of SQL files called `my-migrations/` next to your
Expand Down Expand Up @@ -63,8 +63,8 @@ many processes is attempting to run migrations simultaneously.

## Using Inline Migration Structs

If you're running in an earlier version of Go, Migration{} structs will need to
be created manually:
If you prefer not to use embedded migration files, `Migration{}` structs can be
created manually:

```go
db, err := sql.Open(...)
Expand Down Expand Up @@ -179,6 +179,12 @@ there's a good chance a different schema migration tool is more appropriate.

## Version History

### 1.5.0 - Apr 18, 2026

- **Breaking:** Go 1.25.5+ is now required because the Docker-based test stack now depends on `ory/dockertest/v4`
- Update Docker-based test dependencies to address security vulnerabilities by migrating to `ory/dockertest/v4`
- Finalize GitHub Actions CI/release automation and improve automated release notes extraction from README version history

### 1.4.0 - Feb 21, 2026

- **Breaking:** Go 1.24+ now required (was 1.22)
Expand Down
Loading