@catladder/cli 0.0.0-main-14ffda6e → 0.0.0-main-55992239

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.
@@ -2824,7 +2824,7 @@ Object.defineProperty(exports, "__esModule", ({
2824
2824
  value: true
2825
2825
  }));
2826
2826
  exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
2827
- exports.PIPELINE_IMAGE_TAG = "main-14ffda6e" || 0;
2827
+ exports.PIPELINE_IMAGE_TAG = "main-55992239" || 0;
2828
2828
  exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
2829
2829
 
2830
2830
  /***/ }),
@@ -4400,8 +4400,12 @@ const createCopyDbScript = ({
4400
4400
  const copyDBScript = `
4401
4401
  set -e
4402
4402
 
4403
- ${targetPSQL(`-c 'drop database "${targetDbName}" WITH (FORCE)' 1> /dev/null || true`)}
4404
- ${targetPSQL(`-c 'create database "${targetDbName}"' 1> /dev/null`)}
4403
+ ${targetPSQL(
4404
+ // connect to the always-existing "postgres" maintenance database:
4405
+ // without an explicit dbname, psql falls back to the username and
4406
+ // fails with e.g. 'FATAL: database "user" does not exist'
4407
+ `--dbname=postgres -c 'drop database "${targetDbName}" WITH (FORCE)' 1> /dev/null || true`)}
4408
+ ${targetPSQL(`--dbname=postgres -c 'create database "${targetDbName}"' 1> /dev/null`)}
4405
4409
  echo "Estimating database size..."
4406
4410
  DB_SIZE=$(PGPASSWORD=${encodedSourcePassword} psql --dbname=postgres://${encodedSourceUsername}:${encodedSourcePassword}@localhost:${sourcePort}/${sourceDbName} -t -A -c "SELECT pg_database_size('${sourceDbName}')")
4407
4411
  # pg_database_size includes indexes, TOAST, and free space — pg_dump output is roughly 40% of that
@@ -7721,7 +7725,7 @@ Object.defineProperty(exports, "__esModule", ({
7721
7725
  value: true
7722
7726
  }));
7723
7727
  exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
7724
- exports.PIPELINE_IMAGE_TAG = "main-14ffda6e" || 0;
7728
+ exports.PIPELINE_IMAGE_TAG = "main-55992239" || 0;
7725
7729
  exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
7726
7730
 
7727
7731
  /***/ }),
@@ -30,8 +30,12 @@ const createCopyDbScript = ({
30
30
  const copyDBScript = `
31
31
  set -e
32
32
 
33
- ${targetPSQL(`-c 'drop database "${targetDbName}" WITH (FORCE)' 1> /dev/null || true`)}
34
- ${targetPSQL(`-c 'create database "${targetDbName}"' 1> /dev/null`)}
33
+ ${targetPSQL(
34
+ // connect to the always-existing "postgres" maintenance database:
35
+ // without an explicit dbname, psql falls back to the username and
36
+ // fails with e.g. 'FATAL: database "user" does not exist'
37
+ `--dbname=postgres -c 'drop database "${targetDbName}" WITH (FORCE)' 1> /dev/null || true`)}
38
+ ${targetPSQL(`--dbname=postgres -c 'create database "${targetDbName}"' 1> /dev/null`)}
35
39
  echo "Estimating database size..."
36
40
  DB_SIZE=$(PGPASSWORD=${encodedSourcePassword} psql --dbname=postgres://${encodedSourceUsername}:${encodedSourcePassword}@localhost:${sourcePort}/${sourceDbName} -t -A -c "SELECT pg_database_size('${sourceDbName}')")
37
41
  # pg_database_size includes indexes, TOAST, and free space — pg_dump output is roughly 40% of that
@@ -1 +1 @@
1
- {"version":3,"file":"copyDb.js","sourceRoot":"","sources":["../../../../../src/gcloud/cloudSql/copyDb.ts"],"names":[],"mappings":";;;AAAA,iEAA8C;AAWvC,MAAM,WAAW,GAAG,KAAK,EAAE,IAAU,EAAE,EAAE;IAC9C,MAAM,MAAM,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAExC,OAAO,MAAM,IAAA,6BAAK,EAAC,MAAM,EAAE,EAAE,EAAE;QAC7B,KAAK,EAAE,MAAM;QACb,KAAK,EAAE,SAAS;KACjB,CAAC,CAAC;AACL,CAAC,CAAC;AAPW,QAAA,WAAW,eAOtB;AACF,MAAM,kBAAkB,GAAG,CAAC,E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,EACZ,YAAY,GACP,EAAE,EAAE;IACT,MAAM,UAAU,GAAG,CAAC,OAAe,EAAE,EAAE,CACrC,cAAc,cAAc,YAAY,UAAU,4BAA4B,cAAc,OAAO,OAAO,EAAE,CAAC;IAE/G,yEAAyE;IACzE,MAAM,qBAAqB,GAAG,kBAAkB,CAAC,cAAc,CAAC,CAAC;IACjE,MAAM,qBAAqB,GAAG,kBAAkB,CAAC,cAAc,CAAC,CAAC;IAEjE,MAAM,YAAY,GAAG;;;QAGf,UAAU;IACV,kEAAkE;IAClE,kEAAkE;IAClE,0DAA0D;IAC1D,wCAAwC,YAAY,sCAAsC,CAC3F;QACC,UAAU,CACV,0CAA0C,YAAY,iBAAiB,CACxE;;6BAEsB,qBAAqB,6BAA6B,qBAAqB,IAAI,qBAAqB,cAAc,UAAU,IAAI,YAAY,uCAAuC,YAAY;;;;;;;;;;;;;0CAa9K,qBAAqB,IAAI,qBAAqB,cAAc,UAAU,IAAI,YAAY,2CAA2C,UAAU,CAAC,IAAI,YAAY,gBAAgB,CAAC;;;OAGhN,CAAC;IACN,OAAO,YAAY,CAAC;AACtB,CAAC,CAAC"}
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
7
- exports.PIPELINE_IMAGE_TAG = "main-14ffda6e" || "latest";
7
+ exports.PIPELINE_IMAGE_TAG = "main-55992239" || "latest";
8
8
  exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || "git.panter.ch:5001/catladder/catladder";