clickhouse-migrations 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -4
- package/lib/migrate.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -32,8 +32,10 @@ If the database provided in the `--db` option (or in `CH_MIGRATIONS_DB`) doesn't
|
|
|
32
32
|
--migrations-home=<dir> Migrations' directory
|
|
33
33
|
|
|
34
34
|
Optional options
|
|
35
|
-
--db-engine=<value> ON CLUSTER and/or ENGINE
|
|
36
|
-
|
|
35
|
+
--db-engine=<value> ON CLUSTER and/or ENGINE for DB
|
|
36
|
+
(default: 'ENGINE=Atomic')
|
|
37
|
+
--timeout=<value> Client request timeout
|
|
38
|
+
(milliseconds, default: 30000)
|
|
37
39
|
|
|
38
40
|
Environment variables
|
|
39
41
|
Instead of options can be used environment variables.
|
|
@@ -42,9 +44,10 @@ If the database provided in the `--db` option (or in `CH_MIGRATIONS_DB`) doesn't
|
|
|
42
44
|
CH_MIGRATIONS_PASSWORD Password (--password)
|
|
43
45
|
CH_MIGRATIONS_DB Database name (--db)
|
|
44
46
|
CH_MIGRATIONS_HOME Migrations' directory (--migrations-home)
|
|
45
|
-
|
|
47
|
+
|
|
46
48
|
CH_MIGRATIONS_DB_ENGINE (optional) DB engine (--db-engine)
|
|
47
|
-
CH_MIGRATIONS_TIMEOUT (optional) Client request timeout
|
|
49
|
+
CH_MIGRATIONS_TIMEOUT (optional) Client request timeout
|
|
50
|
+
(--timeout)
|
|
48
51
|
|
|
49
52
|
CLI executions examples
|
|
50
53
|
settings are passed as command-line options
|
|
@@ -66,6 +69,7 @@ If the database provided in the `--db` option (or in `CH_MIGRATIONS_DB`) doesn't
|
|
|
66
69
|
```
|
|
67
70
|
|
|
68
71
|
Migration file example:
|
|
72
|
+
(e.g., located at /app/clickhouse/migrations/1_init.sql)
|
|
69
73
|
```
|
|
70
74
|
-- an example of migration file 1_init.sql
|
|
71
75
|
|
package/lib/migrate.js
CHANGED
|
@@ -319,7 +319,7 @@ var migration = function (migrations_home, host, username, password, db_name, db
|
|
|
319
319
|
exports.migration = migration;
|
|
320
320
|
var migrate = function () {
|
|
321
321
|
var program = new commander_1.Command();
|
|
322
|
-
program.name('clickhouse-migrations').description('ClickHouse migrations.').version('1.0.
|
|
322
|
+
program.name('clickhouse-migrations').description('ClickHouse migrations.').version('1.0.2');
|
|
323
323
|
program
|
|
324
324
|
.command('migrate')
|
|
325
325
|
.description('Apply migrations.')
|