mirror of
https://github.com/strapi/strapi.git
synced 2025-09-07 23:57:19 +00:00
Merge pull request #13655 from lkho/pr/database-schema-diff-columns
fix: diff indexes columns
This commit is contained in:
commit
ffaff7c66a
@ -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');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user