Merge pull request #13655 from lkho/pr/database-schema-diff-columns

fix: diff indexes columns
This commit is contained in:
Alexandre BODIN 2022-08-03 12:33:51 +02:00 committed by GitHub
commit ffaff7c66a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,7 @@ module.exports = db => {
const diffIndexes = (oldIndex, index) => {
const changes = [];
if (_.difference(oldIndex.columns, index.columns).length > 0) {
if (!_.isEqual(oldIndex.columns, index.columns)) {
changes.push('columns');
}