gg-mysql-connector 1.0.72 → 1.0.73
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.
|
@@ -127,7 +127,8 @@ class MyDBMigrator {
|
|
|
127
127
|
await this.MyDB.query(`ALTER TABLE ${tableName} ADD UNIQUE (${columnName});`);
|
|
128
128
|
}
|
|
129
129
|
else {
|
|
130
|
-
|
|
130
|
+
//! DROP INDEX ถูกแล้ว อย่าแก้เป็น UNIQUE
|
|
131
|
+
await this.MyDB.query(`ALTER TABLE ${tableName} DROP INDEX ${columnName};`);
|
|
131
132
|
}
|
|
132
133
|
}
|
|
133
134
|
}
|
package/package.json
CHANGED
|
@@ -202,8 +202,9 @@ export default class MyDBMigrator {
|
|
|
202
202
|
`ALTER TABLE ${tableName} ADD UNIQUE (${columnName});`
|
|
203
203
|
)
|
|
204
204
|
} else {
|
|
205
|
+
//! DROP INDEX ถูกแล้ว อย่าแก้เป็น UNIQUE
|
|
205
206
|
await this.MyDB.query(
|
|
206
|
-
`ALTER TABLE ${tableName} DROP
|
|
207
|
+
`ALTER TABLE ${tableName} DROP INDEX ${columnName};`
|
|
207
208
|
)
|
|
208
209
|
}
|
|
209
210
|
}
|