clickhouse-migrations 1.0.2 → 1.0.3
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 +2 -2
- package/lib/migrate.js +2 -2
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
## Install
|
|
7
7
|
|
|
8
8
|
```sh
|
|
9
|
-
npm install
|
|
9
|
+
npm install clickhouse-migrations
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
## Usage
|
|
@@ -73,7 +73,7 @@ Migration file example:
|
|
|
73
73
|
```
|
|
74
74
|
-- an example of migration file 1_init.sql
|
|
75
75
|
|
|
76
|
-
SET
|
|
76
|
+
SET allow_experimental_json_type = 1;
|
|
77
77
|
|
|
78
78
|
CREATE TABLE IF NOT EXISTS events (
|
|
79
79
|
timestamp DateTime('UTC'),
|
package/lib/migrate.js
CHANGED
|
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g =
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
13
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clickhouse-migrations",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "ClickHouse Migrations",
|
|
5
5
|
"bin": {
|
|
6
6
|
"clickhouse-migrations": "lib/cli.js"
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"main": "lib/migrate.js",
|
|
9
9
|
"types": "lib/migrate.d.ts",
|
|
10
10
|
"engines": {
|
|
11
|
-
"node": ">=
|
|
11
|
+
"node": ">=20"
|
|
12
12
|
},
|
|
13
13
|
"private": false,
|
|
14
14
|
"license": "MIT",
|
|
@@ -26,21 +26,21 @@
|
|
|
26
26
|
"postversion": "git push && git push --tags"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@clickhouse/client": "^1.
|
|
30
|
-
"commander": "^
|
|
29
|
+
"@clickhouse/client": "^1.10.1",
|
|
30
|
+
"commander": "^13.0.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@types/jest": "^29.5.
|
|
34
|
-
"@types/node": "^22.
|
|
35
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
36
|
-
"@typescript-eslint/parser": "^8.
|
|
33
|
+
"@types/jest": "^29.5.14",
|
|
34
|
+
"@types/node": "^22.10.7",
|
|
35
|
+
"@typescript-eslint/eslint-plugin": "^8.21.0",
|
|
36
|
+
"@typescript-eslint/parser": "^8.21.0",
|
|
37
37
|
"eslint": "^8.57.0",
|
|
38
|
-
"eslint-config-prettier": "^
|
|
39
|
-
"eslint-plugin-prettier": "^5.2.
|
|
38
|
+
"eslint-config-prettier": "^10.0.1",
|
|
39
|
+
"eslint-plugin-prettier": "^5.2.3",
|
|
40
40
|
"jest": "^29.7.0",
|
|
41
41
|
"prettier": "^3.3.3",
|
|
42
42
|
"ts-jest": "^29.2.5",
|
|
43
|
-
"typescript": "^5.
|
|
43
|
+
"typescript": "^5.7.3"
|
|
44
44
|
},
|
|
45
45
|
"files": [
|
|
46
46
|
"lib/**/*"
|