clickhouse-migrations 1.0.4 → 1.0.5

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.
Files changed (2) hide show
  1. package/lib/migrate.js +5 -4
  2. package/package.json +16 -16
package/lib/migrate.js CHANGED
@@ -154,14 +154,15 @@ var get_migrations = function (migrations_home) {
154
154
  }
155
155
  var migrations = [];
156
156
  files.forEach(function (file) {
157
+ // Manage only .sql files.
158
+ if (!file.endsWith('.sql')) {
159
+ return;
160
+ }
157
161
  var version = Number(file.split('_')[0]);
158
162
  if (!version) {
159
163
  log('error', "a migration name should start from number, example: 1_init.sql. Please check, if the migration ".concat(file, " is named correctly"));
160
164
  process.exit(1);
161
165
  }
162
- // Manage only .sql files.
163
- if (!file.endsWith('.sql'))
164
- return;
165
166
  migrations.push({
166
167
  version: version,
167
168
  file: file,
@@ -319,7 +320,7 @@ var migration = function (migrations_home, host, username, password, db_name, db
319
320
  exports.migration = migration;
320
321
  var migrate = function () {
321
322
  var program = new commander_1.Command();
322
- program.name('clickhouse-migrations').description('ClickHouse migrations.').version('1.0.4');
323
+ program.name('clickhouse-migrations').description('ClickHouse migrations.').version('1.0.5');
323
324
  program
324
325
  .command('migrate')
325
326
  .description('Apply migrations.')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clickhouse-migrations",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "ClickHouse Migrations",
5
5
  "bin": {
6
6
  "clickhouse-migrations": "lib/cli.js"
@@ -26,23 +26,23 @@
26
26
  "postversion": "git push && git push --tags"
27
27
  },
28
28
  "dependencies": {
29
- "@clickhouse/client": "^1.10.1",
30
- "commander": "^13.1.0"
29
+ "@clickhouse/client": "^1.12.0",
30
+ "commander": "^14.0.0"
31
31
  },
32
32
  "devDependencies": {
33
- "@eslint/js": "^9.18.0",
34
- "@types/jest": "^29.5.14",
35
- "@types/node": "^22.10.7",
36
- "@typescript-eslint/eslint-plugin": "^8.21.0",
37
- "@typescript-eslint/parser": "^8.21.0",
38
- "eslint": "^9.18.0",
39
- "eslint-config-prettier": "^10.0.1",
40
- "eslint-plugin-prettier": "^5.2.3",
41
- "jest": "^29.7.0",
42
- "prettier": "^3.4.2",
43
- "ts-jest": "^29.2.5",
44
- "typescript": "^5.7.3",
45
- "typescript-eslint": "^8.21.0"
33
+ "@eslint/js": "^9.33.0",
34
+ "@types/jest": "^30.0.0",
35
+ "@types/node": "^24.2.1",
36
+ "@typescript-eslint/eslint-plugin": "^8.39.0",
37
+ "@typescript-eslint/parser": "^8.39.0",
38
+ "eslint": "^9.33.0",
39
+ "eslint-config-prettier": "^10.1.8",
40
+ "eslint-plugin-prettier": "^5.5.4",
41
+ "jest": "^30.0.5",
42
+ "prettier": "^3.6.2",
43
+ "ts-jest": "^29.4.1",
44
+ "typescript": "^5.9.2",
45
+ "typescript-eslint": "^8.39.0"
46
46
  },
47
47
  "files": [
48
48
  "lib/**/*"