migrations

command module
v0.0.0-...-12a9b1e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2023 License: BSD-2-Clause Imports: 9 Imported by: 0

README

Migrations example

To run this example, you need a ClickHouse database:

clickhouse-client -q "CREATE DATABASE test"

To run migrations:

go run . db migrate

To rollback migrations:

go run . db rollback

To view status of migrations:

go run . db status

To create a Go migration:

go run . db create_go go_migration_name

To create a SQL migration:

go run . db create_sql sql_migration_name

See ClickHouse migrations for details.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL