mirror of
https://github.com/strapi/strapi.git
synced 2025-10-29 17:04:13 +00:00
Merge pull request #16453 from strapi/feature/index-morph-tables
This commit is contained in:
commit
d8ad5561d4
@ -244,6 +244,16 @@ const createMorphToMany = (attributeName, attribute, meta, metadata) => {
|
||||
name: `${joinTableName}_fk`,
|
||||
columns: [joinColumnName],
|
||||
},
|
||||
{
|
||||
name: `${joinTableName}_order_index`,
|
||||
columns: ['order'],
|
||||
type: null,
|
||||
},
|
||||
{
|
||||
name: `${joinTableName}_id_column_index`,
|
||||
columns: [idColumnName],
|
||||
type: null,
|
||||
},
|
||||
],
|
||||
foreignKeys: [
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user