typeorm 0.3.21-dev.b535cbd → 0.3.21-dev.d05eb7b

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.
@@ -158,7 +158,9 @@ export class CockroachQueryRunner extends BaseQueryRunner {
158
158
  else {
159
159
  this.storeQueries = false;
160
160
  this.transactionDepth -= 1;
161
- await this.query("RELEASE SAVEPOINT cockroach_restart");
161
+ // This was disabled because it failed tests after update to CRDB 24.2
162
+ // https://github.com/typeorm/typeorm/pull/11190
163
+ // await this.query("RELEASE SAVEPOINT cockroach_restart")
162
164
  await this.query("COMMIT");
163
165
  this.queries = [];
164
166
  this.isTransactionActive = false;
@@ -635,7 +637,7 @@ export class CockroachQueryRunner extends BaseQueryRunner {
635
637
  });
636
638
  // rename ENUM types
637
639
  const enumColumns = newTable.columns.filter((column) => column.type === "enum" || column.type === "simple-enum");
638
- for (let column of enumColumns) {
640
+ for (const column of enumColumns) {
639
641
  // skip renaming for user-defined enum name
640
642
  if (column.enumName)
641
643
  continue;
@@ -2229,7 +2231,7 @@ export class CockroachQueryRunner extends BaseQueryRunner {
2229
2231
  * Builds drop index sql.
2230
2232
  */
2231
2233
  dropIndexSql(table, indexOrName) {
2232
- let indexName = InstanceChecker.isTableIndex(indexOrName) ||
2234
+ const indexName = InstanceChecker.isTableIndex(indexOrName) ||
2233
2235
  InstanceChecker.isTableUnique(indexOrName)
2234
2236
  ? indexOrName.name
2235
2237
  : indexOrName;