1
0
mirror of https://github.com/uptrace/go-clickhouse.git synced 2025-06-06 23:16:18 +02:00
2022-05-29 15:49:37 +03:00
..
2022-03-21 08:58:25 +02:00
2022-05-29 15:49:37 +03:00
2022-05-29 15:49:17 +03:00
2022-03-21 08:58:25 +02:00
2022-04-13 16:46:39 +03:00

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.