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