File tree Expand file tree Collapse file tree
forward_engineering/alterScript/alterScriptHelpers/entityHelpers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ const wasCompositePkChangedInTransitionFromCompositeToRegular = collection => {
8484 return PrimaryKeyTransitionDto . noTransition ( ) ;
8585 }
8686 const idOfPkColumn = idsOfColumns [ 0 ] ;
87- const newColumnJsonSchema = Object . values ( collection . role . properties ) . find (
87+ const newColumnJsonSchema = Object . values ( collection . properties || { } ) . find (
8888 columnJsonSchema => columnJsonSchema . GUID === idOfPkColumn ,
8989 ) ;
9090 if ( ! newColumnJsonSchema ) {
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ const wasCompositeUniqueKeyChangedInTransitionFromCompositeToRegular = collectio
8787 return UniqueKeyTransitionDto . noTransition ( ) ;
8888 }
8989 const idOfUniqueKeyColumn = idsOfColumns [ 0 ] ;
90- const newColumnJsonSchema = Object . values ( collection . role . properties ) . find (
90+ const newColumnJsonSchema = Object . values ( collection . properties || { } ) . find (
9191 columnJsonSchema => columnJsonSchema . GUID === idOfUniqueKeyColumn ,
9292 ) ;
9393 if ( ! newColumnJsonSchema ) {
You can’t perform that action at this time.
0 commit comments