LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

goose

Database migration tool

TLDR

Create a new migration
$ goose create [migration-name] [sql|go]
copy
Apply migrations
$ goose up
copy
Rollback last migration
$ goose down
copy
Check migration status
$ goose status
copy

SYNOPSIS

goose [options] command

DESCRIPTION

goose is a database migration tool that supports both SQL and Go migrations. It manages database schema changes by versioning migration files and tracking which migrations have been applied.The tool supports PostgreSQL, MySQL, SQLite, SQL Server, and other databases, providing a consistent interface for schema migrations.

PARAMETERS

up

Migrate up
up-by-one
Migrate up by one version
down
Migrate down
down-to VERSION
Migrate down to specific version
status
Show migration status
create NAME TYPE
Create new migration (sql or go)
fix
Apply sequential ordering to migrations
version
Print goose version
-dir DIR
Migrations directory (default: migrations)
-table TABLE
Migrations table name (default: goosedbversion)
-s, --allow-missing
Allow missing migrations
-v, --version
Display version and exit
-h, --help
Display help and exit

DATABASE DRIVERS

Supported databases:- PostgreSQL- MySQL/MariaDB- SQLite3- SQL Server- ClickHouse- Redshift- TiDB- Turso

INSTALL

sudo dnf install goose
copy
brew install goose
copy
nix profile install nixpkgs#goose
copy

CAVEATS

Requires database connection. Migration files must follow naming conventions. Down migrations should be tested carefully. Concurrent migrations may need locking.

HISTORY

goose was created as a language-agnostic migration tool supporting both SQL and Go-based migrations, filling the gap for Go developers needing database migrations.

SEE ALSO

[migrate](https://github.com/golang-migrate/migrate), [dbmate](https://github.com/amacneil/dbmate), [flyway](https://flywaydb.org/), [liquibase](https://www.liquibase.org/)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid