gg-mysql-connector 1.0.106 → 1.0.107
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.
|
@@ -28,7 +28,12 @@ class MyDBMigrator {
|
|
|
28
28
|
await this.alterUniqueKey(row.tableName, col.COLUMN_NAME, col.IS_UNIQUE, indexList);
|
|
29
29
|
await this.alterIndex(row.tableName, col.COLUMN_NAME, col.IS_INDEX, indexList);
|
|
30
30
|
//!! delete this next version. need to execute only 1 time on production
|
|
31
|
-
|
|
31
|
+
try {
|
|
32
|
+
await this.deleteOldIndexVersion(row.tableName, col.COLUMN_NAME, indexList);
|
|
33
|
+
}
|
|
34
|
+
catch (error) {
|
|
35
|
+
console.log(error);
|
|
36
|
+
}
|
|
32
37
|
await this.alterPossibleEnum(row.tableName, col.COLUMN_NAME, col.POSSIBLE_VALUE, col.IS_NOT_NULL);
|
|
33
38
|
await this.alterForeignKey(row.tableName, col);
|
|
34
39
|
}
|
package/package.json
CHANGED
|
@@ -56,11 +56,15 @@ export default class MyDBMigrator {
|
|
|
56
56
|
indexList
|
|
57
57
|
)
|
|
58
58
|
//!! delete this next version. need to execute only 1 time on production
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
59
|
+
try {
|
|
60
|
+
await this.deleteOldIndexVersion(
|
|
61
|
+
row.tableName,
|
|
62
|
+
col.COLUMN_NAME,
|
|
63
|
+
indexList
|
|
64
|
+
)
|
|
65
|
+
} catch (error) {
|
|
66
|
+
console.log(error)
|
|
67
|
+
}
|
|
64
68
|
|
|
65
69
|
await this.alterPossibleEnum(
|
|
66
70
|
row.tableName,
|