You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Curious how the foreign keys order is determined when Sequelize creates the table? I thought the order is alphabetical but during testing it does not appear this way but at least the order is consistent. Guessing the order comes from Models.js rawAttributes.
Is it possible to add an attribute to foreignKey that lets us define the foreign key constraint name (i.e. fk_PerOrders)? This will help when using Sequelize migrations.
But I also have a problem that I think it's related to this issue (Foreign Key Naming). During the migration, "add column" uses the property name to create the foreign key name, which could generate a problem (duplicate foreign key names).
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still an issue, just leave a comment 🙂
Activity
[-]Request Foreign Key Naming[/-][+]Foreign Key Naming[/+]apsavin commentedon Nov 28, 2015
+1
mjurincic commentedon Apr 22, 2016
+1
antonsamper commentedon Jun 14, 2016
👍
KarboniteKream commentedon Aug 27, 2016
I also think this would be a nice feature.
fabiotadashi commentedon Nov 28, 2016
That would be nice.
But I also have a problem that I think it's related to this issue (Foreign Key Naming). During the migration, "add column" uses the property name to create the foreign key name, which could generate a problem (duplicate foreign key names).
stale commentedon Jun 29, 2017
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still an issue, just leave a comment 🙂